forked from DFHack/df-structures
-
Notifications
You must be signed in to change notification settings - Fork 0
/
df.creature-raws.xml
1447 lines (1245 loc) · 59.8 KB
/
df.creature-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
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>
<enum-type type-name='creature_raw_flags'>
<enum-item name='unk_wagon'/>
<enum-item name='EQUIPMENT_WAGON'/>
<enum-item name='MUNDANE'/>
<enum-item name='VERMIN_EATER'/>
<enum-item name='VERMIN_GROUNDER'/>
<enum-item name='VERMIN_ROTTER'/>
<enum-item name='VERMIN_SOIL'/>
<enum-item name='VERMIN_SOIL_COLONY'/>
<enum-item name='LARGE_ROAMING'/>
<enum-item name='VERMIN_FISH'/>
<enum-item name='LOOSE_CLUSTERS'/>
<enum-item name='FANCIFUL'/>
<enum-item name='BIOME_MOUNTAIN'/>
<enum-item name='BIOME_GLACIER'/>
<enum-item name='BIOME_TUNDRA'/>
<enum-item name='BIOME_SWAMP_TEMPERATE_FRESHWATER'/>
<enum-item name='BIOME_SWAMP_TEMPERATE_SALTWATER'/>
<enum-item name='BIOME_MARSH_TEMPERATE_FRESHWATER'/>
<enum-item name='BIOME_MARSH_TEMPERATE_SALTWATER'/>
<enum-item name='BIOME_SWAMP_TROPICAL_FRESHWATER'/>
<enum-item name='BIOME_SWAMP_TROPICAL_SALTWATER'/>
<enum-item name='BIOME_SWAMP_MANGROVE'/>
<enum-item name='BIOME_MARSH_TROPICAL_FRESHWATER'/>
<enum-item name='BIOME_MARSH_TROPICAL_SALTWATER'/>
<enum-item name='BIOME_FOREST_TAIGA'/>
<enum-item name='BIOME_FOREST_TEMPERATE_CONIFER'/>
<enum-item name='BIOME_FOREST_TEMPERATE_BROADLEAF'/>
<enum-item name='BIOME_FOREST_TROPICAL_CONIFER'/>
<enum-item name='BIOME_FOREST_TROPICAL_DRY_BROADLEAF'/>
<enum-item name='BIOME_FOREST_TROPICAL_MOIST_BROADLEAF'/>
<enum-item name='BIOME_GRASSLAND_TEMPERATE'/>
<enum-item name='BIOME_SAVANNA_TEMPERATE'/>
<enum-item name='BIOME_SHRUBLAND_TEMPERATE'/>
<enum-item name='BIOME_GRASSLAND_TROPICAL'/>
<enum-item name='BIOME_SAVANNA_TROPICAL'/>
<enum-item name='BIOME_SHRUBLAND_TROPICAL'/>
<enum-item name='BIOME_DESERT_BADLAND'/>
<enum-item name='BIOME_DESERT_ROCK'/>
<enum-item name='BIOME_DESERT_SAND'/>
<enum-item name='BIOME_OCEAN_TROPICAL'/>
<enum-item name='BIOME_OCEAN_TEMPERATE'/>
<enum-item name='BIOME_OCEAN_ARCTIC'/>
<enum-item name='BIOME_SUBTERRANEAN_WATER'/>
<enum-item name='BIOME_SUBTERRANEAN_CHASM'/>
<enum-item name='BIOME_SUBTERRANEAN_LAVA'/>
<enum-item name='BIOME_POOL_TEMPERATE_FRESHWATER'/>
<enum-item name='BIOME_POOL_TEMPERATE_BRACKISHWATER'/>
<enum-item name='BIOME_POOL_TEMPERATE_SALTWATER'/>
<enum-item name='BIOME_POOL_TROPICAL_FRESHWATER'/>
<enum-item name='BIOME_POOL_TROPICAL_BRACKISHWATER'/>
<enum-item name='BIOME_POOL_TROPICAL_SALTWATER'/>
<enum-item name='BIOME_LAKE_TEMPERATE_FRESHWATER'/>
<enum-item name='BIOME_LAKE_TEMPERATE_BRACKISHWATER'/>
<enum-item name='BIOME_LAKE_TEMPERATE_SALTWATER'/>
<enum-item name='BIOME_LAKE_TROPICAL_FRESHWATER'/>
<enum-item name='BIOME_LAKE_TROPICAL_BRACKISHWATER'/>
<enum-item name='BIOME_LAKE_TROPICAL_SALTWATER'/>
<enum-item name='BIOME_RIVER_TEMPERATE_FRESHWATER'/>
<enum-item name='BIOME_RIVER_TEMPERATE_BRACKISHWATER'/>
<enum-item name='BIOME_RIVER_TEMPERATE_SALTWATER'/>
<enum-item name='BIOME_RIVER_TROPICAL_FRESHWATER'/>
<enum-item name='BIOME_RIVER_TROPICAL_BRACKISHWATER'/>
<enum-item name='BIOME_RIVER_TROPICAL_SALTWATER'/>
<enum-item name='GOOD'/>
<enum-item name='EVIL'/>
<enum-item name='SAVAGE'/>
<enum-item name='NOT_ASEXUAL'/>
<enum-item name='unk_43' comment='capable of breeding'/>
<enum-item name='unk_44'/>
<enum-item name='unk_45'/>
<enum-item name='any_vermin'/>
<enum-item name='CASTE_CAN_LEARN'/>
<enum-item name='CASTE_VERMIN_HATEABLE'/>
<enum-item name='unk_49'/>
<enum-item name='CASTE_LARGE_PREDATOR'/>
<enum-item name='CASTE_CURIOUSBEAST'/>
<enum-item name='CASTE_BENIGN'/>
<enum-item name='CASTE_NATURAL'/>
<enum-item name='CASTE_MEGABEAST'/>
<enum-item name='CASTE_SEMIMEGABEAST'/>
<enum-item name='CASTE_POWER'/>
<enum-item name='CASTE_VERMIN_MICRO'/>
<enum-item name='CASTE_NOT_FIREIMMUNE'/>
<enum-item name='CASTE_MUST_BREATHE_AIR'/>
<enum-item name='CASTE_MUST_BREATHE_WATER'/>
<enum-item name='unk_55'/>
<enum-item name='CASTE_SWIMS_LEARNED'/>
<enum-item name='CASTE_COMMON_DOMESTIC'/>
<enum-item name='CASTE_UTTERANCES'/>
<enum-item name='CASTE_CAN_SPEAK'/>
<enum-item name='CASTE_FEATURE_BEAST'/>
<enum-item name='GENERATED'/>
<enum-item name='CASTE_TITAN'/>
<enum-item name='CASTE_UNIQUE_DEMON'/>
<enum-item name='DOES_NOT_EXIST'/>
<enum-item name='CASTE_unk_9e'/>
<enum-item name='CASTE_MISCHIEVOUS'/>
<enum-item name='CASTE_FLIER'/>
<enum-item name='CASTE_DEMON'/>
<enum-item name='CASTE_NIGHT_CREATURE_ANY'/>
<enum-item name='CASTE_NIGHT_CREATURE_HUNTER'/>
<enum-item name='CASTE_NIGHT_CREATURE_BOGEYMAN'/>
<enum-item name='CASTE_CARNIVORE'/>
<enum-item name='ARTIFICIAL_HIVEABLE'/>
<enum-item name='UBIQUITOUS'/>
<enum-item name='unk_69'/>
<enum-item name='CASTE_unk_2b'/>
<enum-item name='CASTE_BLOOD'/>
<enum-item name='CASTE_GRAZER'/>
<enum-item name='CASTE_unk_31'/>
<enum-item name='unk_6e'/>
<enum-item name='unk_6f'/>
</enum-type>
<enum-type type-name='caste_raw_flags'>
<enum-item name='AMPHIBIOUS'/>
<enum-item name='AQUATIC'/>
<enum-item name='LOCKPICKER'/>
<enum-item name='MISCHIEVOUS'/>
<enum-item name='PATTERNFLIER'/>
<enum-item name='CURIOUSBEAST_ANY'/>
<enum-item name='CURIOUSBEAST_ITEM'/>
<enum-item name='CURIOUSBEAST_GUZZLER'/>
<enum-item name='FLEEQUICK'/>
<enum-item name='AT_PEACE_WITH_WILDLIFE'/>
<enum-item name='SWIMS_LEARNED'/>
<enum-item name='OPPOSED_TO_LIFE'/>
<enum-item name='CURIOUSBEAST_EATER'/>
<enum-item name='NO_EAT'/>
<enum-item name='NO_DRINK'/>
<enum-item name='NO_SLEEP'/>
<enum-item name='COMMON_DOMESTIC'/>
<enum-item name='WAGON_PULLER'/>
<enum-item name='PACK_ANIMAL'/>
<enum-item name='FLIER'/>
<enum-item name='LARGE_PREDATOR'/>
<enum-item name='MAGMA_VISION'/>
<enum-item name='FIREIMMUNE'/>
<enum-item name='FIREIMMUNE_SUPER'/>
<enum-item name='WEBBER'/>
<enum-item name='WEBIMMUNE'/>
<enum-item name='FISHITEM'/>
<enum-item name='IMMOBILE_LAND'/>
<enum-item name='IMMOLATE'/>
<enum-item name='MILKABLE'/>
<enum-item name='NO_SPRING'/>
<enum-item name='NO_SUMMER'/>
<enum-item name='NO_AUTUMN'/>
<enum-item name='NO_WINTER'/>
<enum-item name='BENIGN'/>
<enum-item name='VERMIN_NOROAM'/>
<enum-item name='VERMIN_NOTRAP'/>
<enum-item name='VERMIN_NOFISH'/>
<enum-item name='HAS_NERVES'/>
<enum-item name='NO_DIZZINESS'/>
<enum-item name='NO_FEVERS'/>
<enum-item name='NO_UNIT_TYPE_COLOR'/>
<enum-item name='NO_CONNECTIONS_FOR_MOVEMENT'/>
<enum-item name='unk_2b'/>
<enum-item name='AMBUSHPREDATOR'/>
<enum-item name='unk_2d'/>
<enum-item name='NOT_BUTCHERABLE'/>
<enum-item name='COOKABLE_LIVE'/>
<enum-item name='SECRETION'/>
<enum-item name='IMMOBILE'/>
<enum-item name='MULTIPART_FULL_VISION'/>
<enum-item name='MEANDERER'/>
<enum-item name='THICKWEB'/>
<enum-item name='TRAINABLE_HUNTING'/>
<enum-item name='PET'/>
<enum-item name='PET_EXOTIC'/>
<enum-item name='unk_38'/>
<enum-item name='CAN_SPEAK'/>
<enum-item name='CAN_LEARN'/>
<enum-item name='UTTERANCES'/>
<enum-item name='BONECARN'/>
<enum-item name='CARNIVORE'/>
<enum-item name='UNDERSWIM'/>
<enum-item name='NOEXERT'/>
<enum-item name='NOPAIN'/>
<enum-item name='EXTRAVISION'/>
<enum-item name='NOBREATHE'/>
<enum-item name='NOSTUN'/>
<enum-item name='NONAUSEA'/>
<enum-item name='BLOOD'/>
<enum-item name='TRANCES'/>
<enum-item name='NOEMOTION'/>
<enum-item name='SLOW_LEARNER'/>
<enum-item name='NOSTUCKINS'/>
<enum-item name='PUS'/>
<enum-item name='NOSKULL'/>
<enum-item name='NOSKIN'/>
<enum-item name='NOBONES'/>
<enum-item name='NOMEAT'/>
<enum-item name='PARALYZEIMMUNE'/>
<enum-item name='NOFEAR'/>
<enum-item name='CANOPENDOORS'/>
<enum-item name='ITEMCORPSE' comment='set if the tag is present; corpse parts go to map_renderer.cursor_other'/>
<enum-item name='GETS_WOUND_INFECTIONS'/>
<enum-item name='NOSMELLYROT'/>
<enum-item name='REMAINS_UNDETERMINED'/>
<enum-item name='HASSHELL'/>
<enum-item name='PEARL'/>
<enum-item name='TRAINABLE_WAR'/>
<enum-item name='NO_THOUGHT_CENTER_FOR_MOVEMENT'/>
<enum-item name='ARENA_RESTRICTED'/>
<enum-item name='LAIR_HUNTER'/>
<enum-item name='LIKES_FIGHTING'/>
<enum-item name='VERMIN_HATEABLE'/>
<enum-item name='VEGETATION'/>
<enum-item name='MAGICAL'/>
<enum-item name='NATURAL'/>
<enum-item name='BABY'/>
<enum-item name='CHILD'/>
<enum-item name='MULTIPLE_LITTER_RARE'/>
<enum-item name='MOUNT'/>
<enum-item name='MOUNT_EXOTIC'/>
<enum-item name='FEATURE_ATTACK_GROUP'/>
<enum-item name='VERMIN_MICRO'/>
<enum-item name='EQUIPS'/>
<enum-item name='LAYS_EGGS'/>
<enum-item name='GRAZER'/>
<enum-item name='NOTHOUGHT'/>
<enum-item name='TRAPAVOID'/>
<enum-item name='CAVE_ADAPT'/>
<enum-item name='MEGABEAST'/>
<enum-item name='SEMIMEGABEAST'/>
<enum-item name='ALL_ACTIVE'/>
<enum-item name='DIURNAL'/>
<enum-item name='NOCTURNAL'/>
<enum-item name='CREPUSCULAR'/>
<enum-item name='MATUTINAL'/>
<enum-item name='VESPERTINE'/>
<enum-item name='LIGHT_GEN'/>
<enum-item name='LISP'/>
<enum-item name='GETS_INFECTIONS_FROM_ROT'/>
<enum-item name='unk_79'/>
<enum-item name='ALCOHOL_DEPENDENT'/>
<enum-item name='SWIMS_INNATE'/>
<enum-item name='POWER'/>
<enum-item name='unk_7d'/>
<enum-item name='unk_7e'/>
<enum-item name='CASTE_TILE'/>
<enum-item name='CASTE_COLOR'/>
<enum-item name='unk_81'/>
<enum-item name='unk_82'/>
<enum-item name='FEATURE_BEAST'/>
<enum-item name='TITAN'/>
<enum-item name='UNIQUE_DEMON'/>
<enum-item name='DEMON'/>
<enum-item name='MANNERISM_LAUGH'/>
<enum-item name='MANNERISM_SMILE'/>
<enum-item name='MANNERISM_WALK'/>
<enum-item name='MANNERISM_SIT'/>
<enum-item name='MANNERISM_BREATH'/>
<enum-item name='MANNERISM_POSTURE'/>
<enum-item name='MANNERISM_STRETCH'/>
<enum-item name='MANNERISM_EYELIDS'/>
<enum-item name='NIGHT_CREATURE_ANY'/>
<enum-item name='NIGHT_CREATURE_HUNTER'/>
<enum-item name='NIGHT_CREATURE_BOGEYMAN'/>
<enum-item name='CONVERTED_SPOUSE'/>
<enum-item name='SPOUSE_CONVERTER'/>
<enum-item name='SPOUSE_CONVERSION_TARGET'/>
<enum-item name='DIE_WHEN_VERMIN_BITE'/>
<enum-item name='REMAINS_ON_VERMIN_BITE_DEATH'/>
<enum-item name='COLONY_EXTERNAL'/>
<enum-item name='LAYS_UNUSUAL_EGGS'/>
<enum-item name='RETURNS_VERMIN_KILLS_TO_OWNER'/>
<enum-item name='HUNTS_VERMIN'/>
<enum-item name='ADOPTS_OWNER'/>
<enum-item name='SOUND_ALERT'/>
<enum-item name='SOUND_PEACEFUL_INTERMITTENT'/>
<enum-item name='unk_9e'/>
<enum-item name='unk_9f'/>
<enum-item name='unk_a0'/>
<enum-item name='CRAZED'/>
<enum-item name='BLOODSUCKER'/>
<enum-item name='NO_VEGETATION_PERTURB'/>
<enum-item name='DIVE_HUNTS_VERMIN'/>
<enum-item name='GOBBLE_VERMIN'/>
<enum-item name='CANNOT_JUMP'/>
<enum-item name='STANCE_CLIMBER'/>
<enum-item name='CANNOT_CLIMB'/>
</enum-type>
<enum-type type-name='body_part_raw_flags'>
<enum-item name='HEAD'/>
<enum-item name='UPPERBODY'/>
<enum-item name='LOWERBODY'/>
<enum-item name='SIGHT'/>
<enum-item name='EMBEDDED'/>
<enum-item name='INTERNAL'/>
<enum-item name='CIRCULATION'/>
<enum-item name='SKELETON'/>
<enum-item name='LIMB'/>
<enum-item name='GRASP'/>
<enum-item name='STANCE'/>
<enum-item name='GUTS'/>
<enum-item name='BREATHE'/>
<enum-item name='SMALL'/>
<enum-item name='THROAT'/>
<enum-item name='JOINT'/>
<enum-item name='THOUGHT'/>
<enum-item name='NERVOUS'/>
<enum-item name='RIGHT'/>
<enum-item name='LEFT'/>
<enum-item name='HEAR'/>
<enum-item name='SMELL'/>
<enum-item name='FLIER'/>
<enum-item name='DIGIT'/>
<enum-item name='MOUTH'/>
<enum-item name='APERTURE'/>
<enum-item name='SOCKET'/>
<enum-item name='TOTEMABLE'/>
<enum-item/>
<enum-item/>
<enum-item name='UNDER_PRESSURE'/>
<enum-item/>
<enum-item name='VERMIN_BUTCHER_ITEM'/>
<enum-item name='CONNECTOR'/>
<enum-item/>
<enum-item/>
<enum-item/>
<enum-item/>
<enum-item name='GELDABLE'/>
</enum-type>
<enum-type type-name='appearance_modifier_type' base-type='int16_t'>
<enum-item name='HEIGHT'/>
<enum-item name='BROADNESS'/>
<enum-item name='LENGTH'/>
<enum-item name='CLOSE_SET'/>
<enum-item name='DEEP_SET'/>
<enum-item name='HIGH_POSITION'/>
<enum-item name='LARGE_IRIS'/>
<enum-item name='WRINKLY'/>
<enum-item name='CURLY'/>
<enum-item name='CONVEX'/>
<enum-item name='DENSE'/>
<enum-item name='THICKNESS'/>
<enum-item name='UPTURNED'/>
<enum-item name='SPLAYED_OUT'/>
<enum-item name='HANGING_LOBES'/>
<enum-item name='GAPS'/>
<enum-item name='HIGH_CHEEKBONES'/>
<enum-item name='BROAD_CHIN'/>
<enum-item name='JUTTING_CHIN'/>
<enum-item name='SQUARE_CHIN'/>
<enum-item name='ROUND_VS_NARROW'/>
<enum-item name='GREASY'/>
<enum-item name='DEEP_VOICE'/>
<enum-item name='RASPY_VOICE'/>
</enum-type>
<enum-type type-name='body_part_layer_flags'>
<enum-item name='CONNECTS'/>
</enum-type>
<struct-type type-name='body_part_layer_raw'>
<stl-string name='layer_name'/>
<code-helper name='describe'>$.layer_name</code-helper>
<int32_t name='tissue_id' refers-to='$$._upglobal._upglobal._upglobal._upglobal._upglobal.tissue[$]'/>
<df-flagarray name='flags' index-enum='body_part_layer_flags'/>
<int32_t name='part_fraction' comment='total 1000'/>
<int32_t name='healing_rate'/>
<int32_t name='vascular'/>
<int32_t name='pain_receptors'/>
<int32_t name='unk6'/>
<int16_t name='unk7'/>
<stl-vector name='bp_modifiers' type-name='int32_t'
refers-to='$$._global._upglobal._upglobal._upglobal.bp_appearance.modifier_idx[$].refers-to'/>
<int32_t name='layer_id' comment='across all body parts'/>
For subordinate layers:
<int32_t name='parent_idx' refers-to='$$._global._upglobal.layers[$]'/>
<int32_t name='parent_layer_id'/>
<int32_t name='layer_depth' comment='-1 for skin and internal organs'/>
<int32_t name='leak_barrier_id' comment='layer that stops TISSUE_LEAKS, but unused and broken'/>
<int32_t name='nonsolid_id'/>
<int32_t name='styleable_id'/>
</struct-type>
<struct-type type-name='body_part_raw'>
<stl-string name='token'/>
<stl-string name='category'/>
<code-helper name='describe'>$.token</code-helper>
<int16_t name='con_part_id'/>
<df-flagarray name='flags' index-enum='body_part_raw_flags'/>
<stl-vector name='layers' pointer-type='body_part_layer_raw'/>
<int32_t name='fraction_total'/>
<int32_t name='fraction_base'/>
<int32_t name='fraction_fat'/>
<int32_t name='fraction_muscle'/>
<int32_t name='relsize'/>
<int32_t name='number'/>
<int16_t name='unk7b'/>
<stl-vector name='name_singular' pointer-type='stl-string'/>
<stl-vector name='name_plural' pointer-type='stl-string'/>
<pointer name='bp_relation_part_id'>
<stl-vector type-name='int16_t'/>
</pointer>
<pointer name='bp_relation_code'>
<stl-vector type-name='int16_t'/> // 0 around of, 1 around by
</pointer>
<pointer name='bp_relation_coverage'>
<stl-vector type-name='int16_t'/>
</pointer>
<uint16_t name='min_temp'/>
<uint16_t name='max_temp'/>
<uint16_t name='temp_factor'/>
<int32_t name='numbered_idx' comment='defined only if number field nonzero'
refers-to='$$._global._upglobal.numbered_masks[$]'/>
<int16_t name='insulation_fat'/>
<int16_t name='insulation_muscle'/>
<int16_t name='insulation_base'/>
<int32_t name='clothing_item_id' init-value='-1' comment='v0.34.06'/>
</struct-type>
<struct-type type-name='color_modifier_raw' key-field='id'>
<code-helper name='describe'> $.part </code-helper>
<stl-vector type-name='int32_t' name='pattern_index' ref-target='descriptor_pattern'/>
<stl-vector type-name='int32_t' name='pattern_frequency'/>
<stl-vector name='body_part_id' type-name='int16_t'
refers-to='$$._global._upglobal.body_info.body_parts[$]'/>
<stl-vector name='tissue_layer_id' type-name='int16_t'
refers-to='$$._global.body_part_id[$$._key].refers-to.layers[$]'
index-refers-to='$$._global.body_part_id[$].refers-to'/>
<int16_t name='unk5' />
<int32_t name='start_date'/>
<int32_t name='end_date'/>
<int32_t name='unk6' />
<stl-string name="part" />
<int16_t name="unk_6c"/>
<int16_t name="unk_6e"/>
<int32_t name="unk_70"/>
<int32_t name="id"/>
<stl-vector name="unk_78">
<pointer/>
</stl-vector>
<stl-vector name="unk_88">
<pointer/>
</stl-vector>
</struct-type>
<struct-type type-name='body_appearance_modifier' key-field='id'>
<code-helper name='describe'> $.type </code-helper>
<enum type-name='appearance_modifier_type' base-type='int16_t' name='type'/>
<static-array type-name='int32_t' count='7' name='ranges'/>
<static-array type-name='int32_t' count='6' name='desc_range'/>
<int32_t/>
<int16_t/>
<int32_t comment='0'/>
<int32_t comment='10000'/>
<int32_t comment='0'/>
<int32_t comment='-1'/>
<int32_t name='importance'/>
<stl-string name='noun'/>
<int16_t/>
<int16_t/>
<int32_t name='id'/>
<int32_t name='id2' comment='same as id'/>
</struct-type>
<struct-type type-name='bp_appearance_modifier' key-field='id'>
<code-helper name='describe'> $.type </code-helper>
<enum type-name='appearance_modifier_type' base-type='int16_t' name='type'/>
<static-array type-name='int32_t' count='7' name='ranges'/>
<static-array type-name='int32_t' count='6' name='desc_range'/>
<int32_t/>
<int16_t/>
<int32_t comment='0'/>
<int32_t comment='10000'/>
<int32_t comment='0'/>
<int32_t comment='-1'/>
<int32_t name='importance'/>
<stl-string name='noun'/>
<int16_t name='single_plural'/>
<int16_t name='unk1'/>
<int32_t name='id1'/>
<stl-vector name='body_parts'>
<int16_t refers-to='$$._global._parent._global.body_info.body_parts[$]'/>
</stl-vector>
<stl-vector name='tissue_layer'>
<int16_t refers-to='$$._parent._parent.body_parts[$$._key].refers-to.layers[$]'/>
</stl-vector>
<int32_t name='id'/>
</struct-type>
<struct-type type-name='caste_clothing_item'>
<int16_t name="body_part_id"/>
<int32_t name="unk_4"/>
<!-- This stuff appears to be used as temporaries
during claim selection or whatever. -->
<static-array name='item' count='3' comment='under, over, cover'>
<pointer type-name="item"/>
</static-array>
<static-array name="unk_14" count='3' type-name='int32_t'/>
<static-array name="size" count='3' type-name='int32_t'/>
<static-array name="permit" count='3' type-name='int32_t'/>
<static-array name="unk_38" count='3' type-name='int32_t'/>
</struct-type>
<struct-type type-name='caste_attack'>
<stl-string name='name'/>
<stl-string name='verb_3rd'/>
<stl-string name='verb_2nd'/>
<bitfield name='flags' base-type='uint16_t'>
<flag-bit name='with'/>
<flag-bit name='latch'/>
<flag-bit name='main'/>
<flag-bit name='edge'/>
</bitfield>
<stl-vector type-name='int32_t' name='specialattack_type' comment='0 = inject extract, 1 = suck blood, 2 = perform interaction'/>
<stl-vector type-name='int16_t' name='specialattack_mat_type' comment='extract injected'/>
<stl-vector type-name='int32_t' name='specialattack_mat_index'/>
<stl-vector type-name='matter_state' name='specialattack_mat_state'/>
<static-array count='3' name='specialattack_temp_mat' comment='parsed during second pass'><stl-vector pointer-type='stl-string'/></static-array>
<stl-vector type-name='int32_t' name='specialattack_min' comment='amount of extract injected or blood sucked'/>
<stl-vector type-name='int32_t' name='specialattack_max'/>
<int32_t name='contact_perc'/>
<int32_t name='penetration_perc'/>
<int16_t name='unk_v40_1' comment='v0.40.1'/>
<int16_t name='unk_v40_2' comment='v0.40.1'/>
<stl-vector type-name='int16_t' name='body_part_idx'/>
<stl-vector type-name='int16_t' name='tissue_layer_idx'/>
<enum base-type="int16_t" type-name="job_skill" name="skill"/>
<int32_t name='velocity_modifier'/>
<stl-vector pointer-type='stl-string' name='specialattack_interaction_tmp_name' comment='parsed during second pass'/>
<stl-vector type-name='int32_t' name='specialattack_interaction_id'/>
<int32_t name='unk_v40_3' comment='v0.40.1'/>
<int32_t name='unk_v40_4' comment='v0.40.1'/>
</struct-type>
<enum-type type-name='gait_type'>
<enum-item name='WALK'/>
<enum-item name='FLY'/>
<enum-item name='SWIM'/>
<enum-item name='CRAWL'/>
<enum-item name='CLIMB'/>
</enum-type>
<struct-type type-name='gait_info'>
<int32_t name='action_string_idx' refers-to='$global.world.raws.creatures.action_strings[$]'/>
<int32_t name='full_speed'/>
<int32_t name='buildup_time'/>
<int32_t name='turn_max'/>
<int32_t name='start_speed'/>
<int32_t name='energy_use'/>
<bitfield name='flags'>
<flag-bit name='layers_slow'/>
<flag-bit name='strength'/>
<flag-bit name='agility'/>
</bitfield>
<int32_t name='stealth_slows'/>
</struct-type>
<struct-type type-name='caste_body_info'>
<stl-vector name='body_parts' pointer-type='body_part_raw'/>
<stl-vector name='attacks' pointer-type='caste_attack'/>
<stl-vector name='interactions'>
<pointer>
<int32_t name='type' comment='0 = RETRACT_INTO_BP, 1 = CAN_DO_INTERACTION'/>
<compound name='unk'>
<stl-vector pointer-type='stl-string' name='bp_required_type'/>
<stl-vector pointer-type='stl-string' name='bp_required_name'/>
<stl-string/>
<stl-string/>
<stl-string name='material_str0'/>
<stl-string name='material_str1'/>
<stl-string name='material_str2'/>
<enum type-name='breath_attack_type' name='material_breath'/>
<stl-string name='verb_2nd'/>
<stl-string name='verb_3rd'/>
<stl-string name='verb_ext'/>
<stl-string/>
<stl-string/>
<stl-string/>
<stl-string/>
<stl-string name='interaction_type'/>
<int32_t/>
<stl-vector name='usage_hint' type-name='interaction_source_usage_hint'/>
<stl-vector name='location_hint' type-name='interaction_effect_location_hint'/>
<int32_t/>
<stl-vector type-name='pointer'/>
<stl-vector type-name='int32_t'/>
<stl-vector type-name='int32_t'/>
<stl-vector type-name='pointer'/>
<stl-vector type-name='int32_t'/>
<stl-vector/>
<stl-vector/>
<stl-string name='adv_name'/>
<int32_t name='wait_period'/>
</compound>
</pointer>
</stl-vector>
<stl-vector name='extra_butcher_objects'>
<pointer>
<int16_t/>
<stl-string/>
<int32_t/>
<stl-string/>
<stl-string/>
<stl-string/>
<stl-string/>
<stl-string/>
<int16_t/>
<int16_t/>
<int16_t/>
<int32_t/>
<int32_t/>
</pointer>
</stl-vector>
<int32_t name='total_relsize' comment='unless INTERNAL or EMBEDDED'/>
<stl-vector name='layer_part' index-refers-to='$$._global.layer_idx[$].refers-to'>
<int16_t refers-to='$$._global.body_parts[$]'/>
</stl-vector>
<stl-vector name='layer_idx'>
<int16_t refers-to='$$._global.layer_part[$$._key].refers-to.layers[$]'/>
</stl-vector>
<stl-vector type-name='uint32_t' name='numbered_masks'
comment='1 bit per instance of a numbered body part'/>
<stl-vector name='layer_nonsolid' index-refers-to='$$._global.layer_part[$].refers-to'>
Index in nonsolid_layers if applicable
<int32_t refers-to='$$._global.nonsolid_layers[$].refers-to'/>
</stl-vector>
<stl-vector name='nonsolid_layers'>
For blood, magma, iron men etc, lists BLOOD/MAGMA/GAS layers.
For other titans and FBs, lists all layers. For ordinary, empty.
<int32_t refers-to='$$._global.layer_idx[$].refers-to'/>
</stl-vector>
<bitfield name='flags' comment='v0.34.01'>
<flag-bit name='unk0'/>
</bitfield>
<static-array name='gait_info' count="5" index-enum='gait_type'>
<stl-vector pointer-type='gait_info'/>
</static-array>
<compound name='materials' type-name='material_vec_ref'/>
Sums of values in the parts:
<int32_t name='fraction_total'/>
<int32_t name='fraction_base'/>
<int32_t name='fraction_fat'/>
<int32_t name='fraction_muscle'/>
<!--<pointer name='clothing_items' comment='v0.34.06'>
<stl-vector pointer-type='caste_clothing_item'/>
</pointer>-->
<static-array name='unk_v40_2' count='11' type-name='int32_t' comment='v0.40.1'/>
</struct-type>
<struct-type type-name='caste_raw'>
<stl-string name='caste_id'/>
<code-helper name='describe'>(fmt "~:(~A ~A~)" $.caste_id $.caste_name[0])</code-helper>
<code-helper name='find-instance'>$global.world.raws.creatures.all[$$].caste[$]</code-helper>
<static-array type-name='stl-string' name='caste_name' count='3'/>
<stl-string name='vermin_bite_txt'/>
<stl-string name='gnawer_txt'/>
<static-array type-name='stl-string' name='baby_name' count='2'/>
<static-array type-name='stl-string' name='child_name' count='2'/>
<static-array type-name='stl-string' name='itemcorpse_str' count='5'/> // temporary
<static-array type-name='stl-string' name='remains' count='2'/>
<stl-string name='description'/>
<static-array type-name='stl-string' name='mannerisms' count='17'>
<comment>fingers[2], nose, ear, head, eyes, mouth, hair, knuckles, lips, cheek, nails, f eet, arms, hands, tongue, leg</comment>
</static-array>
<uint8_t name='caste_tile'/>
<uint8_t name='caste_soldier_tile'/>
<uint8_t name='caste_alttile'/>
<uint8_t name='caste_soldier_alttile'/>
<uint8_t name='caste_glowtile'/>
<uint16_t name='homeotherm'/>
<uint16_t name='min_temp'/>
<uint16_t name='max_temp'/>
<uint16_t name='fixed_temp'/>
<static-array type-name='int16_t' name='caste_color' count='3'/>
<compound name='misc'>
<int16_t name='litter_size_min'/>
<int16_t name='litter_size_max'/>
<int16_t name='penetratepower'/>
<int16_t name='vermin_bite_chance'/>
<int16_t name='grasstrample'/>
<int16_t name='buildingdestroyer'/>
<enum base-type='int16_t' name='itemcorpse_itemtype' type-name='item_type'/>
<int16_t name='itemcorpse_itemsubtype'/>
<int16_t name='itemcorpse_materialtype'
ref-target='material' aux-value='$$.itemcorpse_materialindex'/>
<int16_t name='itemcorpse_materialindex'/> // NOT 32-bit!
<int16_t name='itemcorpse_quality'/>
<static-array type-name='int16_t' name='remains_color' count='3'/>
<int16_t name='difficulty'/>
<static-array type-name='int16_t' name='caste_glowcolor' count='3'/>
<int16_t name='beach_frequency'/>
<int16_t name='clutch_size_min'/>
<int16_t name='clutch_size_max'/>
<int16_t name='vision_arc_min'/>
<int16_t name='vision_arc_max'/>
<int32_t name='speed' comment='no longer used'/>
<int32_t name='modvalue'/>
<int32_t name='petvalue'/>
<int32_t name='milkable'/>
<int32_t name='viewrange'/>
<int32_t name='maxage_min'/>
<int32_t name='maxage_max'/>
<int32_t name='baby_age'/>
<int32_t name='child_age'/>
<int32_t name='swim_speed' comment='no longer used'/>
<int32_t name='trade_capacity'/>
<int32_t name='unk4'/>
<int32_t name='pop_ratio'/>
<int32_t name='adult_size'/>
<int32_t name='bone_mat' ref-target='material' aux-value='$$.bone_matidx'/>
<int32_t name='bone_matidx'/>
<int32_t name='fish_mat_index' refers-to='(food-mat-by-idx $Fish $)'/>
<int32_t name='egg_mat_index' refers-to='(food-mat-by-idx $Eggs $)'/>
<static-array type-name='int32_t' name='attack_trigger' count='3'/>
<int32_t name='egg_size'/>
<int32_t name='grazer'/>
<int32_t name='petvalue_divisor'/>
<int32_t name='prone_to_rage'/>
<static-array type-name='int32_t' name='unk6' count='29'/>
</compound>
<compound name='personality'>
<static-array type-name='int16_t' name='a' count='50' index-enum='personality_facet_type'/>
<static-array type-name='int16_t' name='b' count='50' index-enum='personality_facet_type'/>
<static-array type-name='int16_t' name='c' count='50' index-enum='personality_facet_type'/>
</compound>
<df-flagarray name='flags' index-enum='caste_raw_flags'/>
<int32_t name='index' comment='global across creatures'/>
<compound name='body_info' type-name='caste_body_info'/>
<stl-vector name='caste_speech_1'/>
<stl-vector name='caste_speech_2'/>
<static-array name='skill_rates' count='4'>
<static-array type-name='int32_t' count='118' index-enum='job_skill'/>
</static-array>
<compound name='attributes'>
<static-array name='phys_att_range' count='6' index-enum='physical_attribute_type'>
<static-array type-name='int32_t' count='7'/>
</static-array>
<static-array name='ment_att_range' count='13' index-enum='mental_attribute_type'>
<static-array type-name='int32_t' count='7'/>
</static-array>
<static-array name='phys_att_rates' count='6' index-enum='physical_attribute_type'>
<static-array type-name='int32_t' count='4'/>
</static-array>
<static-array name='ment_att_rates' count='13' index-enum='mental_attribute_type'>
<static-array type-name='int32_t' count='4'/>
</static-array>
<static-array type-name='int32_t' name='phys_att_cap_perc' count='6' index-enum='physical_attribute_type'/>
<static-array type-name='int32_t' name='ment_att_cap_perc' count='13' index-enum='mental_attribute_type'/>
</compound>
<int8_t name='gender'/>
<static-array name='orientation_male' count='3' type-name='int32_t' comment='v0.40.1'/>
<static-array name='orientation_female' count='3' type-name='int32_t' comment='v0.40.1'/>
<stl-vector type-name='int32_t' name='body_size_1'/>
<stl-vector type-name='int32_t' name='body_size_2'/>
<stl-vector name='body_appearance_modifiers' pointer-type='body_appearance_modifier'/>
<compound name='bp_appearance'>
<stl-vector name='modifiers' pointer-type='bp_appearance_modifier'/>
<stl-vector name='modifier_idx' type-name='int32_t'
refers-to='$$._parent._parent.modifiers[$]'
index-refers-to='$$._parent.part_idx[$].refers-to'/>
<stl-vector name='part_idx' type-name='int16_t'
refers-to='$$._global.body_info.body_parts[$]'/>
<stl-vector name='layer_idx' type-name='int16_t'
refers-to='$$._parent._parent.part_idx[$$._key].refers-to.layers[$]'
index-refers-to='$$._parent.part_idx[$].refers-to'/>
-- Subset of modifiable layers, i.e. where layer_idx != -1
<stl-vector name='style_part_idx' type-name='int16_t'
refers-to='$$._global.body_info.body_parts[$]'/>
<stl-vector name='style_layer_idx' type-name='int16_t'
refers-to='$$._parent._parent.style_part_idx[$$._key].refers-to.layers[$]'
index-refers-to='$$._parent.style_part_idx[$].refers-to'/>
<stl-vector name='style_list_idx' type-name='int32_t'
refers-to='$$._parent._parent.modifier_idx[$].refers-to'
index-refers-to='$$._parent.style_layer_idx[$].refers-to'/>
</compound>
<stl-vector name='color_modifiers' pointer-type='color_modifier_raw'/>
<stl-vector name='tissue_styles' pointer-type='tissue_style_raw'/>
<stl-vector name='shearable_tissue_layer'>
<pointer>
<int8_t name='unk_0'/>
<int8_t name='unk_1'/>
<!-- <int16_t name='unk_2'/> padding -->
<int32_t name='length'/>
<stl-vector name='part_idx' type-name='int16_t'/>
<stl-vector name='layer_idx' type-name='int16_t'/>
<stl-vector name='bp_modifiers_idx' type-name='int32_t'/>
-- unit can be sheared at farmers if it has one u.appearance.bp_modifiers[$.bp_modifiers_idx[i]] >= $.length
</pointer>
</stl-vector>
<static-array name='unk16a' count='4'>
<stl-vector/>
</static-array>
<static-array name='unk16b' count='4'>
<stl-vector/>
</static-array>
<static-array type-name='int32_t' name='unk18' count='2'/>
<stl-vector type-name='job_skill' name='natural_skill_id'/>
<stl-vector type-name='int32_t' name='natural_skill_exp'/>
<stl-vector type-name='skill_rating' name='natural_skill_lvl'/>
<compound name='caste_profession_name'>
<static-array type-name='stl-string' name='singular' count='112' index-enum='profession'/>
<static-array type-name='stl-string' name='plural' count='112' index-enum='profession'/>
</compound>
<compound name='extracts'>
<stl-vector type-name='int16_t' name='extract_mat'/>
<stl-vector type-name='int32_t' name='extract_matidx'/>
<static-array name='extract_str' count='3'>
<stl-vector pointer-type='stl-string'/>
</static-array>
<int16_t name='milkable_mat'/>
<int32_t name='milkable_matidx'/>
<static-array name='milkable_str' count='3'>
<stl-string/>
</static-array>
<int16_t name='webber_mat'/>
<int32_t name='webber_matidx'/>
<static-array name='webber_str' count='3'>
<stl-string/>
</static-array>
<int16_t name='vermin_bite_mat'/>
<int32_t name='vermin_bite_matidx'/>
<int16_t name='vermin_bite_chance'/>
<static-array name='vermin_bite_str' count='3'>
<stl-string/>
</static-array>
<int16_t name='tendons_mat'/>
<int32_t name='tendons_matidx'/>
<static-array name='tendons_str' count='3'>
<stl-string/>
</static-array>
<int32_t name='tendons_heal'/>
<int16_t name='ligaments_mat'/>
<int32_t name='ligaments_matidx'/>
<static-array name='ligaments_str' count='3'>
<stl-string/>
</static-array>
<int32_t name='ligaments_heal'/>
<int16_t name='blood_state'/>
<int16_t name='blood_mat'/>
<int32_t name='blood_matidx'/>
<static-array name='blood_str' count='3'>
<stl-string/>
</static-array>
<int16_t name='pus_state'/>
<int16_t name='pus_mat'/>
<int32_t name='pus_matidx'/>
<static-array name='pus_str' count='3'>
<stl-string/>
</static-array>
<stl-vector type-name='int16_t' name='egg_material_mattype'/>
<stl-vector type-name='int32_t' name='egg_material_matindex'/>
<static-array name='egg_material_str' count='3'>
<stl-vector pointer-type='stl-string'/>
</static-array>
<stl-vector name='lays_unusual_eggs_itemtype'>
<enum base-type='int16_t' type-name='item_type'/>
</stl-vector>
<stl-vector name='lays_unusual_eggs_itemsubtype'/>
<stl-vector type-name='int16_t' name='lays_unusual_eggs_mattype'/>
<stl-vector type-name='int32_t' name='lays_unusual_eggs_matindex'/>
<static-array name='lays_unusual_eggs_str' count='5'>
<stl-vector pointer-type='stl-string'/>
</static-array>
</compound>
<stl-vector name='secretion'>
<pointer>
<int16_t name='mat_type' ref-target='material' aux-value='$$.mat_index'/>
<int32_t name='mat_index'/>
<enum type-name='matter_state' base-type='int16_t' name='mat_state'/>
<stl-string name="mat_type_str"/>
<stl-string name="mat_index_str"/>
<stl-string name="unk_44"/>
<stl-vector name="body_part_id" type-name="int16_t" refers-to='$$._upglobal.body_info.body_parts[$]'/>
<stl-vector name="layer_id" type-name="int16_t" refers-to='$$._parent._parent.body_part_id[$$._key].refers-to.layers[$]'/>
<int32_t name='cause' comment='v0.40.01; 2 EXERTION, 1 EXTREME_EMOTION, 0 always?'/>
</pointer>
</stl-vector>
<stl-vector name='creature_class' pointer-type='stl-string'/>
<compound name='unknown2'>