forked from DFHack/df-structures
-
Notifications
You must be signed in to change notification settings - Fork 0
/
df.units.xml
2510 lines (2210 loc) · 109 KB
/
df.units.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
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<data-definition>
<bitfield-type type-name='unit_flags1' base-type='uint32_t'>
<flag-bit name='move_state'
comment='Can the dwarf move or are they waiting for their movement timer'/>
<flag-bit name='inactive'
comment='Set for dead units and incoming/leaving critters that are alive but off-map'/>
<flag-bit name='has_mood' comment='Currently in mood'/>
<flag-bit name='had_mood' comment='Had a mood already'/>
<flag-bit name='marauder' comment='wide class of invader/inside creature attackers'/>
<flag-bit name='drowning' comment='Is currently drowning'/>
<flag-bit name='merchant' comment='An active merchant'/>
<flag-bit name='forest'
comment='used for units no longer linked to merchant/diplomacy, they just try to leave mostly'/>
<flag-bit name='left' comment='left the map'/>
<flag-bit name='rider' comment='Is riding an another creature'/>
<flag-bit name='incoming'/>
<flag-bit name='diplomat'/>
<flag-bit name='zombie'/>
<flag-bit name='skeleton'/>
<flag-bit name='can_swap' comment='Can swap tiles during movement (prevents multiple swaps)'/>
<flag-bit name='on_ground' comment='The creature is laying on the floor, can be conscious'/>
<flag-bit name='projectile' comment='Launched into the air? Funny.'/>
<flag-bit name='active_invader' comment='Active invader (for organized ones)'/>
<flag-bit name='hidden_in_ambush'/>
<flag-bit name='invader_origin' comment='Invader origin (could be inactive and fleeing)'/>
<flag-bit name='coward' comment='Will flee if invasion turns around'/>
<flag-bit name='hidden_ambusher' comment='Active marauder/invader moving inward?'/>
<flag-bit name='invades' comment='Marauder resident/invader moving in all the way'/>
<flag-bit name='check_flows' comment='Check against flows next time you get a chance'/>
<flag-bit name='ridden'/>
<flag-bit name='caged'/>
<flag-bit name='tame'/>
<flag-bit name='chained'/>
<flag-bit name='royal_guard'/>
<flag-bit name='fortress_guard'/>
<flag-bit name='suppress_wield'/>
<flag-bit name='important_historical_figure' comment='Is an important historical figure'/>
</bitfield-type>
<bitfield-type type-name='unit_flags2' base-type='uint32_t'>
<flag-bit name='swimming'/>
<flag-bit name='sparring' comment='works, but not set for sparring military dwarves(?) (since 0.40.01?)'/>
<flag-bit name='no_notify' comment='Do not notify about level gains (for embark etc)'/>
<flag-bit name='unused'/>
<flag-bit name='calculated_nerves'/>
<flag-bit name='calculated_bodyparts'/>
<flag-bit name='important_historical_figure'
comment='Is important historical figure (slight variation)'/>
<flag-bit name='killed'
comment='Has been killed by kill function (slightly different from dead, not necessarily violent death)'/>
<flag-bit name='cleanup_1' comment='Must be forgotten by forget function (just cleanup)'/>
<flag-bit name='cleanup_2' comment='Must be deleted (cleanup)'/>
<flag-bit name='cleanup_3' comment='Recently forgotten (cleanup)'/>
<flag-bit name='for_trade' comment='Offered for trade'/>
<flag-bit name='trade_resolved'/>
<flag-bit name='has_breaks'/>
<flag-bit name='gutted'/>
<flag-bit name='circulatory_spray'/>
<flag-bit name='locked_in_for_trading'
comment="Locked in for trading (it's a projectile on the other set of flags, might be what the flying was)"/>
<flag-bit name='slaughter' comment='marked for slaughter'/>
<flag-bit name='underworld' comment='Underworld creature'/>
<flag-bit name='resident' comment='Current resident'/>
<flag-bit name='cleanup_4'
comment='Marked for special cleanup as unused load from unit block on disk'/>
<flag-bit name='calculated_insulation' comment='Insulation from clothing calculated'/>
<flag-bit name='visitor_uninvited' comment='Uninvited guest'/>
<flag-bit name='visitor'/>
<flag-bit name='calculated_inventory' comment='Inventory order calculated'/>
<flag-bit name='vision_good' comment='Vision -- have good part'/>
<flag-bit name='vision_damaged' comment='Vision -- have damaged part'/>
<flag-bit name='vision_missing' comment='Vision -- have missing part'/>
<flag-bit name='breathing_good' comment='Breathing -- have good part'/>
<flag-bit name='breathing_problem' comment='Breathing -- having a problem'/>
<flag-bit name='roaming_wilderness_population_source'/>
<flag-bit name='roaming_wilderness_population_source_not_a_map_feature'/>
</bitfield-type>
<bitfield-type type-name='unit_flags3' base-type='uint32_t'>
<flag-bit name='body_part_relsize_computed'/>
<flag-bit name='size_modifier_computed'/>
<flag-bit name='stuck_weapon_computed' comment='cleared if removing StuckIn item to recompute wound flags.'/>
<flag-bit name='compute_health' comment='causes the health structure to be created or updated'/>
<flag-bit name='announce_titan' comment='Announces creature like an FB or titan.'/>
<flag-bit name='unk5'/>
<flag-bit name='on_crutch'/>
<flag-bit name='weight_computed'/>
<flag-bit name='body_temp_in_range' comment='Is set to 1 every tick for non-dead creatures.'/>
<flag-bit name='wait_until_reveal' comment='Blocks all kind of things until tile is revealed.'/>
<flag-bit name='scuttle'>
<comment>
Scuttle creature: causes creature to be killed, leaving a behind
corpse and generating negative thoughts like a real kill.
</comment>
</flag-bit>
<flag-bit name='unk11'/>
<flag-bit name='ghostly'/>
<flag-bit name='unk13'/>
<flag-bit name='unk14'/>
<flag-bit name='unk15' comment='dropped when znew >= zold'/>
<flag-bit name='unk16' comment='something to do with werewolves?'/>
<flag-bit name='no_meandering' comment='for active_invaders'/>
<flag-bit name='floundering'/>
<flag-bit name='exit_vehicle1' comment='trapavoid'/>
<flag-bit name='exit_vehicle2' comment='trapavoid'/>
<flag-bit name='dangerous_terrain'/>
<flag-bit name='adv_yield'/>
<flag-bit name='vision_cone_set'/>
<flag-bit name='unk24'/>
<flag-bit name='emotionally_overloaded' since='v0.40.01'/>
<flag-bit name='unk26'/>
<flag-bit name='available_for_adoption'/>
<flag-bit name='gelded'/>
<flag-bit name='marked_for_gelding'/>
<flag-bit name='injury_thought'/>
<flag-bit name='unk31' comment='causes No Activity to be displayed'/>
</bitfield-type>
<bitfield-type type-name='unit_flags4' base-type='uint32_t'>
<flag-bit name='unk0'/>
<flag-bit name='unk1'/>
<flag-bit name='unk2'/>
<flag-bit name='unk3'/>
</bitfield-type>
<enum-type type-name='value_type'>
<enum-item name='NONE' value='-1'/>
<enum-item name='LAW'/>
<enum-item name='LOYALTY'/>
<enum-item name='FAMILY'/>
<enum-item name='FRIENDSHIP'/>
<enum-item name='POWER'/>
<enum-item name='TRUTH'/>
<enum-item name='CUNNING'/>
<enum-item name='ELOQUENCE'/>
<enum-item name='FAIRNESS'/>
<enum-item name='DECORUM'/>
<enum-item name='TRADITION'/>
<enum-item name='ARTWORK'/>
<enum-item name='COOPERATION'/>
<enum-item name='INDEPENDENCE'/>
<enum-item name='STOICISM'/>
<enum-item name='INTROSPECTION'/>
<enum-item name='SELF_CONTROL'/>
<enum-item name='TRANQUILITY'/>
<enum-item name='HARMONY'/>
<enum-item name='MERRIMENT'/>
<enum-item name='CRAFTSMANSHIP'/>
<enum-item name='MARTIAL_PROWESS'/>
<enum-item name='SKILL'/>
<enum-item name='HARD_WORK'/>
<enum-item name='SACRIFICE'/>
<enum-item name='COMPETITION'/>
<enum-item name='PERSEVERENCE'/>
<enum-item name='LEISURE_TIME'/>
<enum-item name='COMMERCE'/>
<enum-item name='ROMANCE'/>
<enum-item name='NATURE'/>
<enum-item name='PEACE'/>
<enum-item name='KNOWLEDGE'/>
</enum-type>
<enum-type type-name='goal_type' base-type='int32_t'>
<enum-attr name='short_name' comment='Goal name in up to 20 characters for displaying in fixed width column'/>
<enum-attr name='achieved_short_name' comment='Achieved goal name in up to 20 characters for displaying in fixed width column'/>
<enum-item name='STAY_ALIVE'>
<item-attr name='short_name' value='Stay Alive'/>
<item-attr name='achieved_short_name' value='Stayed Alive'/>
</enum-item>
<enum-item name='MAINTAIN_ENTITY_STATUS'>
<item-attr name='short_name' value='Maintain Status'/>
<item-attr name='achieved_short_name' value='Maintained Status'/>
</enum-item>
<enum-item name='START_A_FAMILY'>
<item-attr name='short_name' value='Be a Parent'/>
<item-attr name='achieved_short_name' value='Is a Parent'/>
</enum-item>
<enum-item name='RULE_THE_WORLD'>
<item-attr name='short_name' value='Rule the World'/>
<item-attr name='achieved_short_name' value='Ruled the World'/>
</enum-item>
<enum-item name='CREATE_A_GREAT_WORK_OF_ART'>
<item-attr name='short_name' value='Create Great Artwork'/>
<item-attr name='achieved_short_name' value='Made Great Artwork'/>
</enum-item>
<enum-item name='CRAFT_A_MASTERWORK'>
<item-attr name='short_name' value='Craft a Masterwork'/>
<item-attr name='achieved_short_name' value='Crafted a Masterwork'/>
</enum-item>
<enum-item name='BRING_PEACE_TO_THE_WORLD'>
<item-attr name='short_name' value='Bring Peace to World'/>
<item-attr name='achieved_short_name' value='Brought World Peace'/>
</enum-item>
<enum-item name='BECOME_A_LEGENDARY_WARRIOR'>
<item-attr name='short_name' value='Be Legendary Warrior'/>
<item-attr name='achieved_short_name' value='Is Legendary Warrior'/>
</enum-item>
<enum-item name='MASTER_A_SKILL'>
<item-attr name='short_name' value='Master a Skill'/>
<item-attr name='achieved_short_name' value='Mastered a Skill'/>
</enum-item>
<enum-item name='FALL_IN_LOVE'>
<item-attr name='short_name' value='Fall in Love'/>
<item-attr name='achieved_short_name' value='Fell in Love'/>
</enum-item>
<enum-item name='SEE_THE_GREAT_NATURAL_SITES'>
<item-attr name='short_name' value='See Natural Wonders'/>
<item-attr name='achieved_short_name' value='Saw Natural Wonders'/>
</enum-item>
<enum-item name='IMMORTALITY'>
<item-attr name='short_name' value='Immortality'/>
<item-attr name='achieved_short_name' value='Immortal'/>
</enum-item>
<enum-item name='MAKE_A_GREAT_DISCOVERY'>
<item-attr name='short_name' value='Make Great Discovery'/>
<item-attr name='achieved_short_name' value='Made Great Discovery'/>
</enum-item>
<enum-item name='ATTAIN_RANK_IN_SOCIETY' since='v0.47.01'>
<item-attr name='short_name' value='Attain Social Rank'/>
<item-attr name='achieved_short_name' value='Attained Social Rank'/>
</enum-item>
<enum-item name='BATHE_WORLD_IN_CHAOS' since='v0.47.01'>
<item-attr name='short_name' value='Bathe World in Chaos'/>
<item-attr name='achieved_short_name' value='World is in Chaos'/>
</enum-item>
</enum-type>
<enum-type type-name='personality_facet_type' base-type='int32_t'>
<enum-item name='NONE' value='-1'/>
<enum-item name='LOVE_PROPENSITY'/>
<enum-item name='HATE_PROPENSITY'/>
<enum-item name='ENVY_PROPENSITY'/>
<enum-item name='CHEER_PROPENSITY'/>
<enum-item name='DEPRESSION_PROPENSITY'/>
<enum-item name='ANGER_PROPENSITY'/>
<enum-item name='ANXIETY_PROPENSITY'/>
<enum-item name='LUST_PROPENSITY'/>
<enum-item name='STRESS_VULNERABILITY'/>
<enum-item name='GREED'/>
<enum-item name='IMMODERATION'/>
<enum-item name='VIOLENT'/>
<enum-item name='PERSEVERENCE'/>
<enum-item name='WASTEFULNESS'/>
<enum-item name='DISCORD'/>
<enum-item name='FRIENDLINESS'/>
<enum-item name='POLITENESS'/>
<enum-item name='DISDAIN_ADVICE'/>
<enum-item name='BRAVERY'/>
<enum-item name='CONFIDENCE'/>
<enum-item name='VANITY'/>
<enum-item name='AMBITION'/>
<enum-item name='GRATITUDE'/>
<enum-item name='IMMODESTY'/>
<enum-item name='HUMOR'/>
<enum-item name='VENGEFUL'/>
<enum-item name='PRIDE'/>
<enum-item name='CRUELTY'/>
<enum-item name='SINGLEMINDED'/>
<enum-item name='HOPEFUL'/>
<enum-item name='CURIOUS'/>
<enum-item name='BASHFUL'/>
<enum-item name='PRIVACY'/>
<enum-item name='PERFECTIONIST'/>
<enum-item name='CLOSEMINDED'/>
<enum-item name='TOLERANT'/>
<enum-item name='EMOTIONALLY_OBSESSIVE'/>
<enum-item name='SWAYED_BY_EMOTIONS'/>
<enum-item name='ALTRUISM'/>
<enum-item name='DUTIFULNESS'/>
<enum-item name='THOUGHTLESSNESS'/>
<enum-item name='ORDERLINESS'/>
<enum-item name='TRUST'/>
<enum-item name='GREGARIOUSNESS'/>
<enum-item name='ASSERTIVENESS'/>
<enum-item name='ACTIVITY_LEVEL'/>
<enum-item name='EXCITEMENT_SEEKING'/>
<enum-item name='IMAGINATION'/>
<enum-item name='ABSTRACT_INCLINED'/>
<enum-item name='ART_INCLINED'/>
</enum-type>
<enum-type type-name='physical_attribute_type'>
<enum-item name='STRENGTH'/>
<enum-item name='AGILITY'/>
<enum-item name='TOUGHNESS'/>
<enum-item name='ENDURANCE'/>
<enum-item name='RECUPERATION'/>
<enum-item name='DISEASE_RESISTANCE'/>
</enum-type>
<enum-type type-name='mental_attribute_type'>
<enum-item name='ANALYTICAL_ABILITY'/>
<enum-item name='FOCUS'/>
<enum-item name='WILLPOWER'/>
<enum-item name='CREATIVITY'/>
<enum-item name='INTUITION'/>
<enum-item name='PATIENCE'/>
<enum-item name='MEMORY'/>
<enum-item name='LINGUISTIC_ABILITY'/>
<enum-item name='SPATIAL_SENSE'/>
<enum-item name='MUSICALITY'/>
<enum-item name='KINESTHETIC_SENSE'/>
<enum-item name='EMPATHY'/>
<enum-item name='SOCIAL_AWARENESS'/>
</enum-type>
<enum-type type-name='mood_type' base-type='int16_t'>
<enum-item name='None' value='-1'/>
<enum-item name='Fey'/>
<enum-item name='Secretive'/>
<enum-item name='Possessed'/>
<enum-item name='Macabre'/>
<enum-item name='Fell'/>
<enum-item name='Melancholy'/>
<enum-item name='Raving'/>
<enum-item name='Berserk'/>
<enum-item name='Baby'/>
<enum-item name='Traumatized'/>
</enum-type>
<enum-type type-name='ghost_type' base-type='int16_t'>
<enum-item name='None' value='-1'/>
<enum-item name='MurderousGhost'/>
<enum-item name='SadisticGhost'/>
<enum-item name='SecretivePoltergeist'/>
<enum-item name='EnergeticPoltergeist'/>
<enum-item name='AngryGhost'/>
<enum-item name='ViolentGhost'/>
<enum-item name='MoaningSpirit'/>
<enum-item name='HowlingSpirit'/>
<enum-item name='TroublesomePoltergeist'/>
<enum-item name='RestlessHaunt'/>
<enum-item name='ForlornHaunt'/>
</enum-type>
<enum-type type-name='animal_training_level' base-type='int32_t'>
<enum-item name='SemiWild'/>
<enum-item name='Trained'/>
<enum-item name='WellTrained'/>
<enum-item name='SkilfullyTrained'/>
<enum-item name='ExpertlyTrained'/>
<enum-item name='ExceptionallyTrained'/>
<enum-item name='MasterfullyTrained'/>
<enum-item name='Domesticated'/>
<enum-item name='Unk8'/>
<enum-item name='WildUntamed'
comment='Seems to be used as default when not flags1.tame'/>
</enum-type>
<enum-type type-name='unit_report_type' base-type='int16_t'>
<enum-item name='Combat'/>
<enum-item name='Sparring'/>
<enum-item name='Hunting'/>
</enum-type>
<enum-type type-name='skill_rating' base-type='int32_t'>
<enum-attr name='xp_threshold' type-name='uint32_t'/>
<enum-attr name='caption'/>
<enum-item name='Dabbling'>
<item-attr name='xp_threshold' value='500'/>
<item-attr name='caption' value='Dabbling'/>
</enum-item>
<enum-item name='Novice'>
<item-attr name='xp_threshold' value='600'/>
<item-attr name='caption' value='Novice'/>
</enum-item>
<enum-item name='Adequate'>
<item-attr name='xp_threshold' value='700'/>
<item-attr name='caption' value='Adequate'/>
</enum-item>
<enum-item name='Competent'>
<item-attr name='xp_threshold' value='800'/>
<item-attr name='caption' value='Competent'/>
</enum-item>
<enum-item name='Skilled'>
<item-attr name='xp_threshold' value='900'/>
<item-attr name='caption' value='Skilled'/>
</enum-item>
<enum-item name='Proficient'>
<item-attr name='xp_threshold' value='1000'/>
<item-attr name='caption' value='Proficient'/>
</enum-item>
<enum-item name='Talented'>
<item-attr name='xp_threshold' value='1100'/>
<item-attr name='caption' value='Talented'/>
</enum-item>
<enum-item name='Adept'>
<item-attr name='xp_threshold' value='1200'/>
<item-attr name='caption' value='Adept'/>
</enum-item>
<enum-item name='Expert'>
<item-attr name='xp_threshold' value='1300'/>
<item-attr name='caption' value='Expert'/>
</enum-item>
<enum-item name='Professional'>
<item-attr name='xp_threshold' value='1400'/>
<item-attr name='caption' value='Professional'/>
</enum-item>
<enum-item name='Accomplished'>
<item-attr name='xp_threshold' value='1500'/>
<item-attr name='caption' value='Accomplished'/>
</enum-item>
<enum-item name='Great'>
<item-attr name='xp_threshold' value='1600'/>
<item-attr name='caption' value='Great'/>
</enum-item>
<enum-item name='Master'>
<item-attr name='xp_threshold' value='1700'/>
<item-attr name='caption' value='Master'/>
</enum-item>
<enum-item name='HighMaster'>
<item-attr name='xp_threshold' value='1800'/>
<item-attr name='caption' value='High Master'/>
</enum-item>
<enum-item name='GrandMaster'>
<item-attr name='xp_threshold' value='1900'/>
<item-attr name='caption' value='Grand Master'/>
</enum-item>
<enum-item name='Legendary'>
<item-attr name='xp_threshold' value='2000'/>
<item-attr name='caption' value='Legendary'/>
</enum-item>
<enum-item name='Legendary1'>
<item-attr name='xp_threshold' value='2100'/>
<item-attr name='caption' value='Legendary+1'/>
</enum-item>
<enum-item name='Legendary2'>
<item-attr name='xp_threshold' value='2200'/>
<item-attr name='caption' value='Legendary+2'/>
</enum-item>
<enum-item name='Legendary3'>
<item-attr name='xp_threshold' value='2300'/>
<item-attr name='caption' value='Legendary+3'/>
</enum-item>
<enum-item name='Legendary4'>
<item-attr name='xp_threshold' value='2400'/>
<item-attr name='caption' value='Legendary+4'/>
</enum-item>
<enum-item name='Legendary5'>
<item-attr name='caption' value='Legendary+5'/>
</enum-item>
</enum-type>
<enum-type type-name='unit_relationship_type' base-type='int16_t' comment='Used in unit.relations'>
-- Can be checked through viewscreen_layer_unit_relationshipst
<enum-item name='None' value='-1'/>
<enum-item name='Pet'/>
<enum-item name='Spouse'/>
<enum-item name='Mother'/>
<enum-item name='Father'/>
<enum-item name='LastAttacker'/>
<enum-item name='GroupLeader'/>
<enum-item name='Draggee'/>
<enum-item name='Dragger'/>
<enum-item name='RiderMount'/>
<enum-item name='Lover'/>
<enum-item name='unk10'/>
<enum-item name='Sibling'/>
<enum-item name='Child'/>
<enum-item name='Friend'/>
<enum-item name='Grudge'/>
<enum-item name='Worship'/>
<enum-item name='AcquaintanceLong'/>
<enum-item name='AcquaintancePassing'/>
<enum-item name='Bonded'/>
<enum-item name='Hero'/>
<enum-item name='ConsidersViolent'/>
<enum-item name='ConsidersPsychotic'/>
<enum-item name='GoodForBusiness'/>
<enum-item name='FriendlyTerms'/>
<enum-item name='ConsidersKiller'/>
<enum-item name='ConsidersMurderer'/>
<enum-item name='Comrade'/>
<enum-item name='MemberOfRespectedGroup'/>
<enum-item name='MemberOfHatedGroup'/>
<enum-item name='EnemyFighter'/>
<enum-item name='FriendlyFighter'/>
<enum-item name='ConsidersBully'/>
<enum-item name='ConsidersBrigand'/>
<enum-item name='LoyalSoldier'/>
<enum-item name='ConsidersMonster'/>
<enum-item name='ConsidersStoryteller'/>
<enum-item name='ConsidersPoet'/>
<enum-item name='ConsidersBard'/>
<enum-item name='ConsidersDancer'/>
<enum-item name='Master'/>
<enum-item name='Apprentice'/>
<enum-item name='Companion'/>
<enum-item name='FormerMaster'/>
<enum-item name='FormerApprentice'/>
<enum-item name='ConsidersQuarreler'/>
<enum-item name='ConsidersFlatterer'/>
<enum-item name='Hunter'/>
<enum-item name='ProtectorOfTheWeak'/>
</enum-type>
<enum-type type-name='need_type' base-type='int32_t'>
<enum-item name='Socialize'/>
<enum-item name='DrinkAlcohol'/>
<enum-item name='PrayOrMeditate'/>
<enum-item name='StayOccupied'/>
<enum-item name='BeCreative'/>
<enum-item name='Excitement'/>
<enum-item name='LearnSomething'/>
<enum-item name='BeWithFamily'/>
<enum-item name='BeWithFriends'/>
<enum-item name='HearEloquence'/>
<enum-item name='UpholdTradition'/>
<enum-item name='SelfExamination'/>
<enum-item name='MakeMerry'/>
<enum-item name='CraftObject'/>
<enum-item name='MartialTraining'/>
<enum-item name='PracticeSkill'/>
<enum-item name='TakeItEasy'/>
<enum-item name='MakeRomance'/>
<enum-item name='SeeAnimal'/>
<enum-item name='SeeGreatBeast'/>
<enum-item name='AcquireObject'/>
<enum-item name='EatGoodMeal'/>
<enum-item name='Fight'/>
<enum-item name='CauseTrouble'/>
<enum-item name='Argue'/>
<enum-item name='BeExtravagant'/>
<enum-item name='Wander'/>
<enum-item name='HelpSomebody'/>
<enum-item name='ThinkAbstractly'/>
<enum-item name='AdmireArt'/>
</enum-type>
<enum-type type-name='pronoun_type' base-type='int8_t'>
Dwarf Fortress calls the functions that use this type to determine the pronouns for abstract_building, so it's not anything biology-related.
<enum-attr name='symbol'/>
<enum-attr name='subject' comment='[PRO_SUB]'/>
<enum-attr name='object' comment='[PRO_OBJ]'/>
<enum-attr name='posessive' comment='[PRO_POS]'/>
<enum-attr name='reflexive' comment='[PRO_REF]'/>
<enum-item name='it' value='-1'>
<item-attr name='subject' value='it'/>
<item-attr name='object' value='it'/>
<item-attr name='posessive' value='its'/>
<item-attr name='reflexive' value='itself'/>
</enum-item>
<enum-item name='she'>
using C-style escapes here as XML doesn't like having characters 11 and 12 in it, even if they're escaped
this currently works fine due to how the headers are generated, but a different solution may be needed if
the header generator is more robust in the future
<item-attr name='symbol' value='\x0c'/>
<item-attr name='subject' value='she'/>
<item-attr name='object' value='her'/>
<item-attr name='posessive' value='her'/>
<item-attr name='reflexive' value='herself'/>
</enum-item>
<enum-item name='he'>
<item-attr name='symbol' value='\x0b'/>
<item-attr name='subject' value='he'/>
<item-attr name='object' value='him'/>
<item-attr name='posessive' value='his'/>
<item-attr name='reflexive' value='himself'/>
</enum-item>
</enum-type>
<class-type type-name='unit' key-field='id' instance-vector='$global.world.units.all'
original-name='unitst'>
<compound type-name='language_name' name='name'/>
<code-helper name='describe'>
(describe-obj $.name)
(awhen (find-creature $.race)
(fmt "~:(~A ~A~)" $it.caste[$.caste].caste_id $it.creature_id))
</code-helper>
<stl-string name='custom_profession'/>
<enum base-type='int16_t' name='profession' type-name='profession' init-value='STANDARD'/>
<enum base-type='int16_t' name='profession2' type-name='profession' init-value='STANDARD'/>
<int32_t name='race' ref-target='creature_raw'/>
<compound name='pos' type-name='coord'/>
<compound name='idle_area' type-name='coord'>
<comment>
E.g. for a dead miner, holds the place where he
was likely hanging around when he got the command
to mine in an aquifer.
</comment>
</compound>
<int32_t name='idle_area_threshold' init-value='3'/>
<enum base-type='int16_t' name='idle_area_type' type-name='unit_station_type'/>
<int32_t name='follow_distance'/>
<compound name='path'>
<compound name='dest' type-name='coord'/>
<enum base-type='int16_t' name='goal' type-name='unit_path_goal'/>
<compound name='path' type-name='coord_path'/>
</compound>
<bitfield name='flags1' type-name='unit_flags1'/>
<bitfield name='flags2' type-name='unit_flags2'/>
<bitfield name='flags3' type-name='unit_flags3'/>
<bitfield name='flags4' type-name='unit_flags4'/>
<compound name='meeting'>
<enum name='state' base-type='int8_t'>
<enum-item name="SelectNoble" value="0"/>
<enum-item name="FollowNoble" value="1"/>
<enum-item name="DoMeeting" value="2"/>
<enum-item name="LeaveMap" value="3"/>
</enum>
<int32_t name='target_entity' ref-target='historical_entity'/>
<enum name='target_role' type-name='entity_position_responsibility' base-type='int16_t'/>
<padding size='2'/>
</compound>
<int16_t name='caste' ref-target='caste_raw' aux-value='$$.race'/>
<enum name='sex' type-name='pronoun_type'/>
<int32_t name='id'/>
<int16_t name='unk_100'/>
<enum name='training_level' base-type='int32_t'
type-name='animal_training_level' init-value='WildUntamed'/>
<int32_t name='schedule_id' ref-target='schedule_info'/>
<int32_t name='civ_id' ref-target='historical_entity'/>
<int32_t name='population_id' ref-target='entity_population'/>
<int32_t name='unk_c0' since='v0.34.01' init-value='-1'/>
<int32_t name='cultural_identity' ref-target='cultural_identity' since='v0.40.01'/>
<int32_t name='invasion_id' ref-target='invasion_info'/>
<compound name='patrol_route' type-name='coord_path'
comment='used by necromancers for corpse locations, siegers etc'/>
<int32_t name='patrol_index' comment='from 23a'/>
<stl-vector name='specific_refs' pointer-type='specific_ref'/>
<stl-vector name='general_refs' pointer-type='general_ref'/>
<compound name='military'>
<int32_t name='squad_id' ref-target='squad'/>
<int32_t name='squad_position' init-value='-1'/>
<int32_t name='patrol_cooldown'/>
<int32_t name='patrol_timer'/>
<!-- <compound name='uniform' comment='confirmed from disassembly'> -->
<int16_t name='cur_uniform'/>
<stl-vector name='unk_items' type-name='int32_t'
ref-target='item' since='v0.34.06'/>
<static-array name='uniforms' count='4'>
<stl-vector type-name='int32_t' ref-target='item'/>
</static-array>
<bitfield name='pickup_flags'>
<flag-bit name='update'/>
</bitfield>
<stl-vector name='uniform_pickup' type-name='int32_t' ref-target='item'/>
<stl-vector name='uniform_drop' type-name='int32_t' ref-target='item'/>
<!-- </compound> -->
<stl-vector name='individual_drills' type-name='int32_t' ref-target='activity_entry'/>
</compound>
<stl-vector name='social_activities' type-name='int32_t' ref-target='activity_entry'/>
<stl-vector name='conversations' type-name='int32_t' ref-target='activity_entry' since='v0.40.01'/>
<stl-vector name='activities' type-name='int32_t' ref-target='activity_entry'/>
<stl-vector name='unk_1e8' type-name='int32_t' since='v0.40.01'/>
<compound name='animal'>
<compound name='population' type-name='world_population_ref'/>
<int32_t name='leave_countdown'
comment='once 0, it heads for the edge and leaves'/>
<int32_t name='vanish_countdown' comment='once 0, it vanishes in a puff of smoke'/>
</compound>
<compound name='opponent'>
This was used by a vampire scared of cave creatures and doing FleeFromOpponent panic
<int32_t name='unit_id' ref-target='unit' since='v0.40.01'/>
<compound name='unit_pos' type-name='coord' since='v0.40.01'/>
<int32_t name='unk_c' since='v0.40.01'/>
</compound>
<enum base-type='int16_t' name='mood' type-name='mood_type' init-value='None'/>
<int16_t name='unk_18e'/>
<uint32_t name='pregnancy_timer'/>
<pointer name='pregnancy_genes' type-name='unit_genes' comment='genes from mate'/>
<int16_t name='pregnancy_caste' comment='caste of mate'
ref-target='caste_raw' aux-value='$$._global.race'/>
<int32_t name='pregnancy_spouse' ref-target='historical_figure'/>
<enum base-type='int16_t' name='mood_copy' type-name='mood_type' init-value='None'
comment='copied from mood type upon entering strange mood'/>
<pointer name='ghost_info' type-name='unit_ghost_info'/>
<int32_t name='unk_9' init-value='-1' since='v0.34.01'/>
<int32_t name='birth_year' init-value='-1'/>
<int32_t name='birth_time' init-value='-1'/>
<int32_t name='curse_year' init-value='-1' since='v0.34.01'/>
<int32_t name='curse_time' init-value='-1' since='v0.34.01'/>
<int32_t name='birth_year_bias' init-value='0' since='v0.34.01'/>
<int32_t name='birth_time_bias' init-value='0' since='v0.34.01'/>
<int32_t name='old_year' init-value='-1' comment='could there be a death of old age time??'/>
<int32_t name='old_time' init-value='-1'/>
<pointer name='following' type-name='unit'/>
<uint16_t name='unk_238' comment='invalid unless following'/>
<static-array name='relationship_ids' type-name='int32_t' count='10' index-enum='unit_relationship_type'/>
TODO: find correct location and enumify
<int16_t name='mount_type' comment='0 = riding, 1 = being carried, 2/3 = wagon horses, 4 = wagon merchant'/>
<compound name='last_hit' type-name='history_hit_item'/>
<int32_t name='riding_item_id' ref-target='item' since='v0.34.08'/>
<stl-vector name='inventory' pointer-type='unit_inventory_item'/>
<stl-vector name='owned_items' type-name='int32_t' ref-target='item'/>
<stl-vector name='traded_items' comment='items brought to trade depot' type-name='int32_t' ref-target='item'/>
<stl-vector name='owned_buildings' pointer-type='building'/>
<stl-vector name='corpse_parts' comment='entries remain even when items are destroyed' type-name='int32_t' ref-target='item'/>
<compound name='job'>
<int32_t name='account'/>
<int32_t name='satisfaction' comment='amount earned recently for jobs'/>
<pointer type-name='unit' name='hunt_target'/>
<int32_t name='unk_v4305_1'/>
<pointer type-name='building' name='destroy_target'/>
<int32_t name='unk_v40_1' since='v0.40.01'/>
<int32_t name='unk_v40_2' since='v0.40.01'/>
<int32_t name='unk_v40_3' since='v0.40.01'/>
<int32_t name='unk_v40_4' since='v0.40.01'/>
<int8_t name='unk_v40_5' since='v0.40.01'/>
<int32_t name='gait_buildup'/>
<compound name='climb_hold' type-name='coord'/>
<int32_t name='unk_v4014_1' init-value='-1' since='v0.40.14'/>
<pointer comment='df_job' name='current_job' type-name='job'/>
TODO: fix
<enum base-type='int16_t' type-name='job_skill' name='mood_skill' comment="can be uninitialized for children and animals"/>
<int32_t name='mood_timeout' comment='counts down from 50000, insanity upon reaching zero'/>
<int32_t name='unk_39c'/>
</compound>
<compound name='body'>
<compound name='components' type-name='body_component_info'/>
<stl-vector name='wounds' pointer-type='unit_wound'/>
<int32_t name='wound_next_id' init-value='1'/>
<static-array name='unk_39c' count='10'>
<int32_t init-value='-1'/>
</static-array>
<pointer name='body_plan' type-name='caste_body_info'/>
<int16_t name='weapon_bp' refers-to='$$._parent.body_plan.body_parts[$]' init-value='-1'/>
<static-array type-name='unit_attribute' name='physical_attrs'
count='6' index-enum='physical_attribute_type'/>
<compound name='size_info' type-name='body_size_info'/>
<uint32_t name='blood_max'/>
<uint32_t name='blood_count'/>
<int32_t name='infection_level'
comment='GETS_INFECTIONS_FROM_ROT sets; DISEASE_RESISTANCE reduces; >=300 causes bleeding'/>
<stl-vector name='spatters' pointer-type='spatter'/>
</compound>
<compound name='appearance'>
<stl-vector name='body_modifiers' type-name='int32_t'
index-refers-to='$$._global.caste.ref-target.body_appearance_modifiers[$]'/>
<stl-vector name='bp_modifiers' type-name='int32_t'
index-refers-to='$$._global.caste.ref-target.bp_appearance.modifier_idx[$].refers-to'/>
<int32_t name='size_modifier' comment='product of all H/B/LENGTH body modifiers, in %'/>
-- Something for bp_appearance.layers_*
<stl-vector type-name='int16_t' name='tissue_style'
index-refers-to='$$._global.caste.ref-target.bp_appearance.style_layer_idx[$].refers-to'/>
<stl-vector type-name='int32_t' name='tissue_style_civ_id'
ref-target='historical_entity'
index-refers-to='$$._parent.tissue_style.index-refers-to[$]'/>
<stl-vector type-name='int32_t' name='tissue_style_id'
ref-target='entity_tissue_style'
aux-value='$$._parent.tissue_style_civ_id[$._key]'
index-refers-to='$$._parent.tissue_style.index-refers-to[$]'/>
<stl-vector type-name='int32_t' name='tissue_style_type'
refers-to='(find-by-id $$._global.caste.ref-target.tissue_styles $id $)'
index-refers-to='$$._parent.tissue_style.index-refers-to[$]'/>
<stl-vector type-name='int32_t' name='tissue_length'
index-refers-to='$$._parent.tissue_style.index-refers-to[$]'
comment='description uses bp_modifiers[style_list_idx[index]]'/>
<compound name='genes' type-name='unit_genes'/>
<stl-vector name='colors' type-name='int32_t'/>
</compound>
<stl-vector name='actions' pointer-type='unit_action'/>
<int32_t name='next_action_id'/>
<compound name='counters'>
<int32_t name='think_counter'/> // 53c decrements every job_counter reroll, set when changing jobs
<int32_t name='job_counter'/> // 540 current_job unit/walk done when reach -1, decremented every tick
<int32_t name='swap_counter' comment='dec per job_counter reroll, can_swap if 0'/>
<enum name='death_cause' base-type='int16_t' type-name='death_type'/>
<int32_t name='death_id' ref-target='incident'/>
<int16_t name='winded'/>
<int16_t name='stunned'/> // 54c decrements every tick, unstun at 0
<int16_t name='unconscious'/>
<int16_t name='suffocation' comment='counts up while winded, results in death'/>
<int16_t name='webbed'/>
-- When gutted:
<compound name='guts_trail1' type-name='coord'/>
<compound name='guts_trail2' type-name='coord'/>
<int16_t name='soldier_mood_countdown' init-value='300' comment='plus a random amount' />
<enum name='soldier_mood' base-type='int16_t' init-value='None'>
<enum-item name='None' value='-1'/>
<enum-item name='MartialTrance'/>
<enum-item name='Enraged'/>
<enum-item name='Tantrum'/>
<enum-item name='Depressed'/>
<enum-item name='Oblivious'/>
</enum>
<uint32_t name='pain'/>
<uint32_t name='nausea'/>
<uint32_t name='dizziness'/>
</compound>
<compound name='curse'>
<int32_t name='unk_0' comment='moved from end of counters in 0.43.05'/>
<bitfield name='add_tags1' type-name='cie_add_tag_mask1'/>
<bitfield name='rem_tags1' type-name='cie_add_tag_mask1'/>
<bitfield name='add_tags2' type-name='cie_add_tag_mask2'/>
<bitfield name='rem_tags2' type-name='cie_add_tag_mask2'/>
<bool name='name_visible' since='v0.34.01'/>
<stl-string name='name' since='v0.34.01'/>
<stl-string name='name_plural' since='v0.34.01'/>
<stl-string name='name_adjective' since='v0.34.01'/>
<uint32_t name='sym_and_color1' since='v0.34.01' init-value='0x400'/>
<uint32_t name='sym_and_color2' since='v0.34.01' init-value='0x400'/>
<uint32_t name='flash_period' since='v0.34.01'/>
<uint32_t name='flash_time2' since='v0.34.01'/>
<stl-vector name='body_appearance' type-name='int32_t'
index-refers-to='$$._global.caste.ref-target.body_appearance_modifiers[$]'/>
<stl-vector name='bp_appearance' type-name='int32_t' since='v0.34.01' comment='guess!'
index-refers-to='$$._global.caste.ref-target.bp_appearance.modifier_idx[$].refers-to'/>
<uint32_t name='speed_add' since='v0.34.01'/>
<uint32_t name='speed_mul_percent' since='v0.34.01' init-value='100'/>
<pointer name='attr_change' type-name='curse_attr_change' since='v0.34.01'/>
<uint32_t name='luck_mul_percent' since='v0.34.01' init-value='100'/>
<int32_t name='unk_98' since='v0.42.01'/>
<!-- <compound name='interaction' comment='confirmed from disassembly'> -->
<stl-vector name='interaction_id' type-name='int32_t' since='v0.34.01'
ref-target='creature_interaction_effect'/>
<stl-vector name='interaction_time' type-name='int32_t' since='v0.34.01'/>
<stl-vector name='interaction_delay' type-name='int32_t' since='v0.34.01'/>
<int32_t name='time_on_site' since='v0.34.01'/>
<stl-vector name='own_interaction' type-name='int32_t' since='v0.34.01'
refers-to='$$._global.body.body_plan.interactions[$]'/>
<stl-vector name='own_interaction_delay' type-name='int32_t' since='v0.34.01'/>
<!-- </compound> -->
</compound>
<compound name='counters2'>
<uint32_t name='paralysis'/>
<uint32_t name='numbness'/>
<uint32_t name='fever'/>
<uint32_t name='exhaustion'/>
<uint32_t name='hunger_timer'/>
<uint32_t name='thirst_timer'/>
<uint32_t name='sleepiness_timer'/>
<uint32_t name='stomach_content'/>
<uint32_t name='stomach_food'/>
<uint32_t name='vomit_timeout' comment='blocks nausea causing vomit'/>
<uint32_t name='stored_fat' comment='hunger leads to death only when 0'/>
</compound>
<compound name='status'>
<stl-vector name='misc_traits' pointer-type='unit_misc_trait'/>
<pointer name='eat_history'>
<compound name='food'>
<stl-vector name='item_type'>
<enum base-type='int16_t' type-name='item_type'/>
</stl-vector>
<stl-vector name='item_subtype' type-name='int16_t'/>
<compound name='material' type-name='material_vec_ref'/>
<stl-vector name='year' type-name='int32_t'/>
<stl-vector name='year_time' type-name='int32_t'/>
</compound>
<compound name='drink'>
<stl-vector name='item_type'>
<enum base-type='int16_t' type-name='item_type'/>
</stl-vector>
<stl-vector name='item_subtype' type-name='int16_t'/>
<compound name='material' type-name='material_vec_ref'/>
<stl-vector name='year' type-name='int32_t'/>
<stl-vector name='year_time' type-name='int32_t'/>
</compound>
</pointer>
<int32_t name='demand_timeout' init-value='1000'/>
<int32_t name='mandate_timeout' init-value='1000'/>
<stl-vector name='attacker_ids' type-name='int32_t' ref-target='unit'/>
<stl-vector name='attacker_cntdn' type-name='int16_t'/>
<uint8_t name='face_direction' comment='for wagons'/>
<compound type-name='language_name' name='artifact_name'/>
<stl-vector name='souls' pointer-type='unit_soul'/>
<pointer name='current_soul' type-name='unit_soul'/>
<stl-vector name='demands' pointer-type='unit_demand'/>
<static-array type-name='bool' name='labors' index-enum='unit_labor' count='94'/>
<stl-vector name='wrestle_items' pointer-type='unit_item_wrestle'/>
<stl-vector name='observed_traps' type-name='int32_t' ref-target='building'/>
<stl-vector name='complaints' pointer-type='unit_complaint'/>
<stl-vector name='unk_138' pointer-type='unit_unk_138' since='v0.44.01'/>
<stl-vector name='requests' pointer-type='unit_request'/>
<stl-vector name='coin_debts' pointer-type='unit_coin_debt'/>
<stl-vector since='v0.47.01'>
<pointer>
<int32_t/>
<int32_t/>
<int32_t/>
following field not saved:
<int32_t/>
following 3 fields saved if first field is 0
<int16_t/>
<int16_t/>
<int16_t/>
</pointer>
</stl-vector>
<int32_t since='v0.47.01'/>
<int32_t since='v0.47.01'/>
<static-array type-name='int32_t' count='5' index-enum='gait_type' since='v0.47.01' comment='initialized together with enemy.gait_index'/>
<int32_t since='v0.47.01'/>