forked from DFHack/df-structures
-
Notifications
You must be signed in to change notification settings - Fork 0
/
df.reaction-raws.xml
233 lines (190 loc) · 9.49 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
<data-definition>
<enum-type type-name='reaction_flags'>
<enum-item name='FUEL'/>
<enum-item name='AUTOMATIC'/>
<enum-item name='ADVENTURE_MODE_ENABLED'/>
</enum-type>
<struct-type type-name='reaction'
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 base-type='int16_t' name='skill' type-name='job_skill'/>
<int32_t name='max_multiplier' init-value='-1' since='v0.42.01'/>
<compound name='building'>
<static-array name='str' count='2'>
<stl-vector pointer-type='stl-string'/>
</static-array>
<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='int32_t' 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='quality_adj1' since='v0.47.02' init-value='11'/>
<int32_t name='quality_adj2' since='v0.47.02' init-value='5'/>
<int32_t name='unk_1' 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'>
<stl-string name='id'/>
<stl-string name='parent'/>
<stl-string name='name'/>
<int32_t name='key'/>
<stl-string name='description'/>
</struct-type>
<struct-type type-name='reaction_description'>
<stl-string name='unk_1'/>
<enum type-name='item_type' name='item_type'/>
<stl-string name='unk_2'/>
</struct-type>
<enum-type type-name='reaction_reagent_type'>
<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><int32_t/><int32_t/><int32_t/><int32_t/><int32_t/><int32_t/></vmethod>
<vmethod is-destructor='true'/>
<vmethod name='resolveTokens'>
<int32_t name='reactionID'/>
</vmethod>
<vmethod><int32_t/><int32_t/><int32_t/></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' comment='or maybe reaction code string ref'/>
<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'>
<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 base-type='int16_t' 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'>
<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' base-type='int16_t'/>
<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='unk4' comment='only used when making improvements'><stl-vector type-name='pointer'/></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'>
<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-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'>
<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'>
<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 base-type='int32_t' 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'>
<stl-string name='reagent_code'/>
<stl-string name='product_code'/>
</compound>
<static-array type-name='stl-string' name='material_str' count='3'/>
<stl-string name='unk_v4201_2' since='v0.42.01'/>
</class-type>
</data-definition>
<!--
Local Variables:
indent-tabs-mode: nil
nxml-child-indent: 4
End:
-->