forked from DFHack/df-structures
-
Notifications
You must be signed in to change notification settings - Fork 0
/
df.interaction.xml
362 lines (314 loc) · 14.5 KB
/
df.interaction.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
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
<data-definition>
<struct-type type-name='interaction'
instance-vector='$global.world.raws.interactions' key-field='id'>
<stl-string name="name"/>
<int32_t name="id"/>
<code-helper name='describe'>$.name</code-helper>
<stl-vector name="str" pointer-type='stl-string'/>
<df-flagarray name='flags'/>
<stl-vector name="sources" pointer-type='interaction_source'/>
<stl-vector name="targets" pointer-type='interaction_target'/>
<stl-vector name="effects" pointer-type='interaction_effect'/>
<int32_t name='source_hfid' ref-target='historical_figure'/>
<int32_t name='source_enid' ref-target='historical_entity' since='v0.42.01'/>
</struct-type>
<enum-type type-name='interaction_effect_type' base-type='int32_t'>
<enum-item name='ANIMATE'/>
<enum-item name='ADD_SYNDROME'/>
<enum-item name='RESURRECT'/>
<enum-item name='CLEAN'/>
<enum-item name='CONTACT'/>
<enum-item name='MATERIAL_EMISSION'/>
<enum-item name='HIDE'/>
</enum-type>
<enum-type type-name='interaction_effect_location_hint' base-type='int32_t'>
<enum-item name='IN_WATER'/>
<enum-item name='IN_MAGMA'/>
<enum-item name='NO_WATER'/>
<enum-item name='NO_MAGMA'/>
not sure of the order of these two:
<enum-item name='OUTSIDE'/>
<enum-item name='NO_THICK_FOG'/>
</enum-type>
<class-type type-name='interaction_effect' original-name='interaction_effectst'>
<int32_t name='unk_1'/>
<stl-vector name='targets' pointer-type='stl-string'/>
<stl-vector name='unk_2' type-name='int32_t'/>
<int32_t name='intermittent' comment='0 = weekly'/>
<stl-vector name='locations' type-name='interaction_effect_location_hint'/>
<bitfield name='flags' base-type='uint32_t'>
<flag-bit name='IMMEDIATE'/>
</bitfield>
<int32_t name='unk_3'/>
<stl-string name='arena_name'/>
<virtual-methods>
<vmethod ret-type='interaction_effect_type' name='getType'/>
<vmethod name='write_file'> <pointer comment='file_compressorst'/> </vmethod>
<vmethod name='read_file'>
<pointer comment='file_compressorst'/>
<int32_t name='loadversion'/>
</vmethod>
<vmethod is-destructor='true'/>
<vmethod><int32_t/><int32_t/><int32_t/></vmethod>
<vmethod name='parseRaws'><int32_t/><int32_t/><int32_t/><int32_t/><int32_t/></vmethod>
<vmethod name='finalize'><int32_t/></vmethod>
<vmethod/>
<vmethod><int32_t/><int32_t/></vmethod>
<vmethod ret-type='bool'><int32_t/></vmethod>
</virtual-methods>
</class-type>
<class-type type-name='interaction_effect_animatest' inherits-from='interaction_effect'>
<int32_t/>
<stl-vector name='syndrome' pointer-type='syndrome'/>
</class-type>
<class-type type-name='interaction_effect_add_syndromest' inherits-from='interaction_effect'>
<int32_t/>
<stl-vector name='syndrome' pointer-type='syndrome'/>
</class-type>
<class-type type-name='interaction_effect_resurrectst' inherits-from='interaction_effect'>
<int32_t/>
<stl-vector name='syndrome' pointer-type='syndrome'/>
</class-type>
<class-type type-name='interaction_effect_cleanst' inherits-from='interaction_effect'>
<int32_t name='grime_level'/>
<bitfield name='syndrome_tag' type-name='syndrome_flags'/>
<int32_t/>
</class-type>
<class-type type-name='interaction_effect_contactst' inherits-from='interaction_effect'>
<int32_t/>
</class-type>
<class-type type-name='interaction_effect_material_emissionst' inherits-from='interaction_effect'>
<int32_t/>
</class-type>
<class-type type-name='interaction_effect_hidest' inherits-from='interaction_effect'>
<int32_t/>
</class-type>
<class-type type-name='interaction_effect_change_item_qualityst' inherits-from='interaction_effect'>
TODO
</class-type>
<class-type type-name='interaction_effect_change_weatherst' inherits-from='interaction_effect'>
<int32_t/>
<int32_t/>
</class-type>
<class-type type-name='interaction_effect_create_itemst' inherits-from='interaction_effect'>
TODO
</class-type>
<class-type type-name='interaction_effect_propel_unitst' inherits-from='interaction_effect'>
<int32_t/>
<int32_t/>
</class-type>
<class-type type-name='interaction_effect_summon_unitst' inherits-from='interaction_effect'>
TODO
</class-type>
<enum-type type-name='interaction_source_type'>
<enum-item name='REGION'/>
<enum-item name='SECRET'/>
<enum-item name='DISTURBANCE'/>
<enum-item name='DEITY'/>
<enum-item name='ATTACK'/>
<enum-item name='INGESTION'/>
<enum-item name='CREATURE_ACTION'/>
<enum-item name='UNDERGROUND_SPECIAL'/>
</enum-type>
<class-type type-name='interaction_source' original-name='interaction_sourcest' key-field='id'>
<code-helper name='find-instance'>
(find-by-id $(find-instance $interaction $$).sources $id $)
</code-helper>
<int32_t name='id'/>
<int32_t name='frequency'/>
<stl-string name='name'/>
<stl-string name='hist_string_1'/>
<stl-string name='hist_string_2'/>
<stl-string/>
<stl-string/>
<stl-string/>
<virtual-methods>
<vmethod ret-type='interaction_source_type' name='getType'/>
<vmethod name='write_file'> <pointer comment='file_compressorst'/> </vmethod>
<vmethod name='read_file'>
<pointer comment='file_compressorst'/>
<int32_t name='loadversion'/>
</vmethod>
<vmethod is-destructor='true'/>
<vmethod name='parseRaws'><int32_t/><int32_t/><int32_t/><int32_t/><int32_t/></vmethod>
<vmethod><int32_t/><int32_t/></vmethod>
<vmethod ret-type='bool'><int32_t/></vmethod>
<vmethod ret-type='bool'><int32_t/></vmethod>
</virtual-methods>
</class-type>
<class-type type-name='interaction_source_regionst' inherits-from='interaction_source'>
<bitfield name='region_flags' base-type='uint32_t'>
<flag-bit name='NORMAL_ALLOWED'/>
<flag-bit name='EVIL_ALLOWED'/>
<flag-bit name='GOOD_ALLOWED'/>
<flag-bit name='SAVAGE_ALLOWED'/>
<flag-bit name='EVIL_ONLY'/>
<flag-bit name='GOOD_ONLY'/>
<flag-bit name='SAVAGE_ONLY'/>
</bitfield>
<static-array name='regions' type-name='int8_t' count='10' index-enum='worldgen_region_type'/>
</class-type>
<class-type type-name='interaction_source_secretst' inherits-from='interaction_source'>
<bitfield name='learn_flags' base-type='uint32_t'>
<flag-bit name='SUPERNATURAL_LEARNING_POSSIBLE'/>
<flag-bit name='MUNDANE_RESEARCH_POSSIBLE'/>
<flag-bit name='MUNDANE_RECORDING_POSSIBLE'/>
<flag-bit name='MUNDANE_TEACHING_POSSIBLE'/>
</bitfield>
<stl-vector name='spheres'>
<enum base-type='int16_t' type-name='sphere_type'/>
</stl-vector>
<stl-vector name='goals' type-name='goal_type'/>
<stl-string name='book_title_filename'/>
<stl-string name='book_name_filename'/>
<int32_t/>
<int32_t/>
</class-type>
<class-type type-name='interaction_source_disturbancest' inherits-from='interaction_source'>
<int32_t/>
</class-type>
<enum-type type-name='interaction_source_usage_hint' base-type='int32_t'>
<enum-item name='MAJOR_CURSE'/>
<enum-item name='GREETING'/>
<enum-item name='CLEAN_SELF'/>
<enum-item name='CLEAN_FRIEND'/>
<enum-item name='ATTACK'/>
<enum-item name='FLEEING'/>
<enum-item name='NEGATIVE_SOCIAL_RESPONSE'/>
<enum-item name='TORMENT'/>
<enum-item name='DEFEND'/>
<enum-item name='MEDIUM_CURSE'/>
<enum-item name='MINOR_CURSE'/>
<enum-item name='MEDIUM_BLESSING'/>
<enum-item name='MINOR_BLESSING'/>
</enum-type>
<class-type type-name='interaction_source_deityst' inherits-from='interaction_source'>
<int32_t/>
<stl-vector name='usage_hint' type-name='interaction_source_usage_hint'/>
</class-type>
<class-type type-name='interaction_source_attackst' inherits-from='interaction_source'>
<int32_t/>
</class-type>
<class-type type-name='interaction_source_ingestionst' inherits-from='interaction_source'>
<int32_t/>
</class-type>
<class-type type-name='interaction_source_creature_actionst' inherits-from='interaction_source'>
<int32_t/>
</class-type>
<class-type type-name='interaction_source_underground_specialst' inherits-from='interaction_source'/>
<class-type type-name='interaction_source_experimentst' inherits-from='interaction_source'>
<int32_t/>
</class-type>
<enum-type type-name='interaction_target_type'>
<enum-item name='CORPSE'/>
<enum-item name='CREATURE'/>
<enum-item name='MATERIAL'/>
<enum-item name='LOCATION'/>
</enum-type>
<enum-type type-name='interaction_target_location_type'>
<enum-item name='CONTEXT_NONE' value='-1'/>
<enum-item name='CONTEXT_REGION'/>
<enum-item name='CONTEXT_CREATURE'/>
<enum-item name='CONTEXT_ITEM'/>
<enum-item name='CONTEXT_BP'/>
<enum-item name='CONTEXT_LOCATION'/>
<enum-item name='CONTEXT_CREATURE_OR_LOCATION'/>
<enum-item name='RANDOM_NEARBY_LOCATION'/>
</enum-type>
<class-type type-name='interaction_target' original-name='interaction_targetst'>
<int32_t name='index'/>
<stl-string name='name'/>
<stl-string name='manual_input'/>
<enum name='location' type-name='interaction_target_location_type'/>
<stl-string name='reference_name'/>
<int32_t name='reference_distance'/>
<virtual-methods>
<vmethod ret-type='interaction_target_type' name='getType'/>
<vmethod name='write_file'> <pointer comment='file_compressorst'/> </vmethod>
<vmethod name='read_file'>
<pointer comment='file_compressorst'/>
<int32_t name='loadversion'/>
</vmethod>
<vmethod is-destructor='true'/>
<vmethod name='parseRaws'><int32_t/><int32_t/><int32_t/><int32_t/><int32_t/></vmethod>
<vmethod><int32_t/></vmethod>
<vmethod ret-type='bool'><int32_t/><int32_t/></vmethod>
<vmethod ret-type='bool'><int32_t/><int32_t/></vmethod>
<vmethod ret-type='bool'><int32_t/><int32_t/></vmethod>
<vmethod ret-type='bool'><int32_t/><int32_t/></vmethod>
</virtual-methods>
</class-type>
<struct-type type-name='interaction_target_info'>
<static-array name='affected_creature_str' count='2'><stl-vector pointer-type='stl-string'/></static-array>
<stl-vector name='affected_creature' type-name='int32_t'/>
<stl-vector name='affected_class' pointer-type='stl-string'/>
<static-array name='immune_creature_str' count='2'><stl-vector pointer-type='stl-string'/></static-array>
<stl-vector name='immune_creature' type-name='int32_t'/>
<stl-vector name='immune_class' pointer-type='stl-string'/>
<stl-vector name='forbidden_syndrome_class' pointer-type='stl-string'/>
<int32_t name='requires_1'/>
<int32_t name='requires_2'/>
<int32_t name='forbidden_1'/>
<int32_t name='forbidden_2'/>
<bitfield name='restrictions' base-type='uint32_t'>
<flag-bit name='CANNOT_TARGET_IF_ALREADY_AFFECTED'/>
</bitfield>
</struct-type>
<class-type type-name='interaction_target_corpsest' inherits-from='interaction_target'>
<compound type-name='interaction_target_info'/>
</class-type>
<class-type type-name='interaction_target_creaturest' inherits-from='interaction_target'>
<compound type-name='interaction_target_info'/>
</class-type>
<enum-type type-name='breath_attack_type' base-type='int16_t'>
<enum-item name='TRAILING_DUST_FLOW'/>
<enum-item name='TRAILING_VAPOR_FLOW'/>
<enum-item name='TRAILING_GAS_FLOW'/>
<enum-item name='SOLID_GLOB'/>
<enum-item name='LIQUID_GLOB'/>
<enum-item name='UNDIRECTED_GAS'/>
<enum-item name='UNDIRECTED_VAPOR'/>
<enum-item name='UNDIRECTED_DUST'/>
<enum-item name='WEB_SPRAY'/>
<enum-item name='DRAGONFIRE'/>
<enum-item name='FIREJET'/>
<enum-item name='FIREBALL'/>
<enum-item name='WEATHER_CREEPING_GAS'/>
<enum-item name='WEATHER_CREEPING_VAPOR'/>
<enum-item name='WEATHER_CREEPING_DUST'/>
<enum-item name='WEATHER_FALLING_MATERIAL'/>
<enum-item name='SPATTER_POWDER'/>
<enum-item name='SPATTER_LIQUID'/>
<enum-item name='UNDIRECTED_ITEM_CLOUD'/>
<enum-item name='TRAILING_ITEM_FLOW'/>
other: root around in, lick, head-bump, scratch, tusk, retract into shell, roll into a ball
often [CDI:CAN_BE_MUTUAL] but not always
<enum-item name='OTHER'/>
<enum-item/>
</enum-type>
<class-type type-name='interaction_target_materialst' inherits-from='interaction_target'>
<static-array name='material_str' type-name='stl-string' count='3'/>
<int16_t name='mat_type' ref-target='material' aux-value='$$.mat_index'/>
<int32_t name='mat_index'/>
<int16_t name='parent_interaction_index'/>
<enum type-name='breath_attack_type' name='breath_attack_type'/>
<bitfield name='restrictions' base-type='uint32_t'>
<flag-bit name='CONTEXT_MATERIAL'/>
</bitfield>
</class-type>
<class-type type-name='interaction_target_locationst' inherits-from='interaction_target'>
</class-type>
<struct-type type-name='interaction_instance' instance-vector='$global.world.interaction_instances.all' key-field='id'>
<int32_t name='id'/>
<int32_t name='interaction_id' ref-target='interaction'/>
<int32_t/>
<int32_t name='region_index'/>
<stl-vector name='affected_units' type-name='int32_t' ref-target='unit' comment='IDs of units affected by the regional interaction'/>
</struct-type>
</data-definition>
<!--
Local Variables:
indent-tabs-mode: nil
nxml-child-indent: 4
End:
-->