-
Notifications
You must be signed in to change notification settings - Fork 81
/
df.reaction-raws.xml
243 lines (200 loc) · 10.5 KB
/
df.reaction-raws.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
<data-definition>
<enum-type type-name='reaction_flags'> bay12: ReactionFlagType
<enum-item name='FUEL'/>
<enum-item name='AUTOMATIC'/>
<enum-item name='ADVENTURE_MODE_ENABLED'/>
<enum-item name='GENERATED'/>
</enum-type>
<struct-type type-name='reaction' original-name='reactionst'
instance-vector='$global.world.raws.reactions.reactions'>
<stl-string name="code"/>
<stl-string name="name"/>
<code-helper name='describe'>$.code</code-helper>
<df-flagarray name='flags' index-enum='reaction_flags'/>
<stl-vector name="reagents" pointer-type='reaction_reagent'/>
<stl-vector name="products" pointer-type='reaction_product'/>
<enum name='skill' type-name='job_skill'/>
<int32_t name='max_multiplier' init-value='-1' since='v0.42.01'/>
<compound name='building'> not a compound
<stl-vector name='token' pointer-type='stl-string'/>
<stl-vector name='temp_job_key' type-name='interface_key'/>
<stl-vector name='type'>
<enum base-type='int32_t' type-name='building_type'/>
</stl-vector>
<stl-vector type-name='int32_t' name='subtype'/>
<stl-vector type-name='int32_t' name='custom'/>
<stl-vector type-name='interface_key' name='hotkey'/>
</compound>
<int32_t name="index"/>
<int32_t name="source_hfid" ref-target='historical_figure' since='v0.42.01'/>
<int32_t name="source_enid" ref-target='historical_entity' since='v0.42.01'/>
<stl-vector name="raw_strings" pointer-type='stl-string' since='v0.42.01'/>
<stl-string name="category" since='v0.42.01'/>
<stl-vector name="descriptions" pointer-type='reaction_description' since='v0.42.01'/>
<int32_t name='rand_range' since='v0.47.02' init-value='11'/>
<int32_t name='skill_mult' since='v0.47.02' init-value='5'/>
<int32_t name='attr_gain' since='v0.47.02' init-value='10'/>
<int32_t name='exp_gain' since='v0.47.02' init-value='30'/>
</struct-type>
<struct-type type-name='reaction_category' original-name='custom_reaction_categoryst'>
<stl-string name='id'/>
<stl-string name='parent'/>
<stl-string name='name'/>
<enum name='key' type-name='interface_key'/>
<stl-string name='description'/>
</struct-type>
<struct-type type-name='reaction_description' original-name='reaction_description_elementst'>
<stl-string name='text'/>
<enum type-name='item_type' name='item_type'/>
<stl-string name='item_token'/>
</struct-type>
<enum-type type-name='reaction_reagent_type' base-type='int32_t'> bay12: ReactionReagentType
<enum-item name='item'/>
</enum-type>
<class-type type-name='reaction_reagent' original-name='reaction_reagentst'>
<stl-string name="code"/>
<code-helper name='describe'>$.code</code-helper>
<int32_t name='quantity'/>
<bitfield name="flags" type-name='reaction_reagent_flags'/>
<virtual-methods>
<vmethod ret-type='reaction_reagent_type' name='getType'/>
<vmethod ret-type='bool' name='have_enough_from_precalc_info'>
<pointer name='bld' type-name='building'/>
<pointer name='boulder_count'><stl-vector type-name='int32_t'/></pointer>
<pointer name='ore_count'><stl-vector type-name='int32_t'/></pointer>
<pointer name='reaction_class'><stl-vector pointer-type='stl-string'/></pointer>
<pointer name='class_count'><stl-vector type-name='int32_t'/></pointer>
<int32_t name='overall_reaction_index'/>
</vmethod>
<vmethod is-destructor='true'/>
<vmethod name='resolveTokens'>
<int32_t name='reactionID'/>
</vmethod>
<vmethod name='contribute_to_job_req'><pointer name='jbr' type-name='job_reqst'/><int32_t name='reagent_idx'/><int32_t name='reaction_idx'/></vmethod>
<vmethod ret-type='bool' name='matchesRoot'>
<pointer type-name='item'/>
<int32_t name='index' ref-target='reaction'/>
</vmethod>
<vmethod ret-type='bool' name='matchesChild'>
<pointer type-name='item'/>
<pointer type-name='reaction'/>
<int32_t name='index' ref-target='reaction'/>
</vmethod>
<vmethod name='getDescription'>
<pointer type-name='stl-string'/>
<int32_t name='index' ref-target='reaction'/>
</vmethod>
<vmethod ret-type='bool' name='isLyeBearing'/>
</virtual-methods>
</class-type>
<bitfield-type type-name='reaction_reagent_flags'> bay12: REACTION_REAGENT_FLAG_*
<flag-bit name='PRESERVE_REAGENT'/>
<flag-bit name='IN_CONTAINER'/>
<flag-bit name='DOES_NOT_DETERMINE_PRODUCT_AMOUNT'/>
</bitfield-type>
<class-type type-name='reaction_reagent_itemst' inherits-from='reaction_reagent'>
<enum base-type='int16_t' name='item_type' type-name='item_type'/>
<int16_t name='item_subtype' refers-to='(item-subtype-target $$._parent.item_type $)'/>
<int16_t name='mat_type' ref-target='material' aux-value='$$.mat_index'/>
<int16_t name='mat_index'/>
<stl-string name='reaction_class'/>
<stl-string name='has_material_reaction_product'/>
<bitfield name='flags1' type-name='job_item_flags1'/>
<bitfield name='flags2' type-name='job_item_flags2'/>
<bitfield name='flags3' type-name='job_item_flags3'/>
<uint32_t name='flags4'/>
<uint32_t name='flags5'/>
<int32_t name='metal_ore' ref-target='inorganic_raw'/>
<int32_t name='min_dimension'/>
<stl-vector type-name='int32_t' name='contains'/>
<enum name='has_tool_use' type-name='tool_uses'/>
<static-array type-name='stl-string' name='item_str' count='2'/>
<static-array type-name='stl-string' name='material_str' count='3'/>
<stl-string name='metal_ore_str'/>
<stl-vector name='contains_str' pointer-type='stl-string'/>
</class-type>
<enum-type type-name='reaction_product_type' base-type='int32_t'> bay12: ReactionProductType
<enum-item name='item'/>
<enum-item name='improvement'/>
</enum-type>
<class-type type-name='reaction_product' original-name='reaction_productst'>
<stl-string name='product_token' since='v0.42.01'/>
<stl-string name="product_to_container"/>
<virtual-methods>
<vmethod ret-type='reaction_product_type' name='getType'/>
<vmethod name='resolveTokens'>
<int32_t name='reactionID'/>
</vmethod>
<vmethod name='produce'>
<pointer name='maker' type-name='unit'/>
<pointer name='out_products'><stl-vector pointer-type='reaction_product'/></pointer>
<pointer name='out_items'><stl-vector pointer-type='item'/></pointer>
<pointer name='in_reag'><stl-vector pointer-type='reaction_reagent'/></pointer>
<pointer name='in_items'><stl-vector pointer-type='item'/></pointer>
<int32_t name='quantity'/>
<enum name='skill' type-name='job_skill'/>
<int32_t name='job_quality' comment='gets +10 for matching preferences, uses cutoffs 23/30/35/45/55 for Well/Fine/Superior/Exceptional/Masterwork'/>
<pointer name='entity' type-name='historical_entity'/>
<pointer name='site' type-name='world_site'/>
<pointer name='improv_items' comment='only used when making improvements'><stl-vector pointer-type='item'/></pointer>
</vmethod>
<vmethod name='getDescription' comment='used in Adventurer mode reactions?'>
<pointer type-name='stl-string' name='desc'/>
</vmethod>
<vmethod is-destructor='true'/>
</virtual-methods>
</class-type>
<enum-type type-name='reaction_product_item_flags'> bay12: ReactionProductItemFlagType
<enum-item name='GET_MATERIAL_SAME'/>
<enum-item name='GET_MATERIAL_PRODUCT'/>
<enum-item name='FORCE_EDGE'/>
<enum-item name='PASTE'/>
<enum-item name='PRESSED'/>
<enum-item name='CRAFTS'/>
<enum-item name='USE_FULL_REACTION_PRODUCT_CLASS'/>
<enum-item name='USE_REAGENT_ITEM'/>
<enum-item name='TRANSFER_ARTIFACT_STATUS'/>
</enum-type>
<class-type type-name='reaction_product_itemst' inherits-from='reaction_product'>
<enum base-type='int16_t' name='item_type' type-name='item_type'/>
<int16_t name='item_subtype' refers-to='(item-subtype-target $$._parent.item_type $)'/>
<int16_t name='mat_type' ref-target='material' aux-value='$$.mat_index'/>
<int32_t name='mat_index'/>
<int16_t name='probability'/>
<int16_t name='count'/>
<int32_t name='product_dimension'/>
<df-flagarray name='flags' index-enum='reaction_product_item_flags'/>
<compound name='get_material'> not a compound
<stl-string name='reagent_code'/>
<stl-string name='product_code'/>
</compound>
<static-array type-name='stl-string' name='item_str' count='2'/>
<static-array type-name='stl-string' name='material_str' count='3'/>
</class-type>
<enum-type type-name='reaction_product_improvement_flags'> bay12: ReactionProductItemImprovementFlagType
<enum-item name='GET_MATERIAL_SAME'/>
<enum-item name='GET_MATERIAL_PRODUCT'/>
<enum-item name='GLAZED'/>
</enum-type>
<class-type type-name='reaction_product_item_improvementst' inherits-from='reaction_product'>
<stl-string name="target_reagent"/>
<enum name='improvement_type' type-name='improvement_type'/>
<enum base-type='int32_t' name='improvement_specific_type' type-name='itemimprovement_specific_type'/>
<int16_t name='mat_type' ref-target='material' aux-value='$$.mat_index'/>
<int32_t name='mat_index'/>
<int16_t name='probability'/>
<df-flagarray name='flags' index-enum='reaction_product_improvement_flags'/>
<compound name='get_material'> not a compound
<stl-string name='reagent_code'/>
<stl-string name='product_code'/>
</compound>
<stl-string name='part_token'/>
<static-array type-name='stl-string' name='material_str' count='3'/>
</class-type>
</data-definition>
<!--
Local Variables:
indent-tabs-mode: nil
nxml-child-indent: 4
End:
-->