forked from DFHack/df-structures
-
Notifications
You must be signed in to change notification settings - Fork 0
/
df.history.xml
3715 lines (3350 loc) · 191 KB
/
df.history.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>
<struct-type type-name='historical_kills'>
-- Important
<stl-vector name="events" type-name='int32_t' ref-target='history_event'/>
-- Misc
<stl-vector name="killed_race" type-name='int16_t' ref-target='creature_raw'/>
<stl-vector name="killed_caste" type-name='int16_t' ref-target='caste_raw' aux-value='$$._parent.killed_race[$._key]'/>
<stl-vector name="killed_underground_region" type-name='int32_t' ref-target='world_underground_region'/>
<stl-vector name="killed_region" type-name='int32_t' ref-target='world_region'/>
<stl-vector name="killed_site" type-name='int32_t' ref-target='world_site'/>
<stl-vector name='killed_undead'>
<bitfield type-name='undead_flags'/>
</stl-vector>
<stl-vector name="killed_count" type-name='int32_t'/>
</struct-type>
<struct-type type-name='history_hit_item'>
<int32_t name='item' ref-target='item'/>
<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='mattype' ref-target='material' aux-value='$$.matindex'/>
<int32_t name='matindex'/>
-- If shot by a ranged weapon:
<int32_t name='shooter_item' ref-target='item'/>
<enum base-type='int16_t' name='shooter_item_type' type-name='item_type'/>
<int16_t name='shooter_item_subtype' refers-to='(item-subtype-target $$._parent.shooter_item_type $)'/>
<int16_t name='shooter_mattype' ref-target='material' aux-value='$$.shooter_matindex'/>
<int32_t name='shooter_matindex'/>
</struct-type>
<enum-type type-name='reputation_type' base-type='int32_t'>
<enum-item name='Hero'/>
<enum-item name='Buddy'/>
<enum-item name='Grudge'/>
<enum-item name='AnimalPartner'/>
<enum-item name='Brawler'/>
<enum-item name='Psycho'/>
<enum-item name='TradePartner'/>
<enum-item name='Friendly'/>
<enum-item name='Killer'/>
<enum-item name='Murderer'/>
<enum-item name='Comrade'/>
<enum-item name='RespectedGroup'/>
<enum-item name='HatedGroup'/>
<enum-item name='EnemyFighter'/>
<enum-item name='FriendlyFighter'/>
<enum-item name='Bully'/>
<enum-item name='Brigand'/>
<enum-item name='LoyalSoldier'/>
<enum-item name='Monster'/>
<enum-item name='Storyteller'/>
<enum-item name='Poet'/>
<enum-item name='Bard'/>
<enum-item name='Dancer'/>
<enum-item name='Quarreler'/>
<enum-item name='Flatterer'/>
<enum-item name='Hunter'/>
<enum-item name='ProtectorOfWeak'/>
<enum-item name='TreasureHunter'/>
<enum-item name='Thief'/>
<enum-item name='InformationSource'/>
<enum-item name='PreserverOfKnowledge'/>
<enum-item name='Intruder'/>
<enum-item name='Preacher'/>
</enum-type>
<!-- This enum is tentative -->
<enum-type type-name='whereabouts_type' base-type='int16_t'>
<enum-item name='NONE' value='-1'/>
<enum-item name='wanderer' comment="wandering the wilds/region/depths of the world (none/region/underground_region)"/>
<enum-item name='settler' comment="site/region, region only for dead 'monsters'"/>
<enum-item name='refugee' comment="into region only for dead. refugees and abucted-imprisoned-turned"/>
<enum-item name='army_died' comment="either no record of participation in battle, or character died and defender won (character on either side)"/>
<enum-item name='army_survived' comment="either no record of participation in battle, or character survived and defender won (character on either side)"/>
<enum-item name='visitor' comment="'visited' as last movement seems to be the key"/>
</enum-type>
<enum-type type-name='season' base-type='int8_t'>
<enum-item name='None' value='-1'/>
<enum-item name='Spring'/>
<enum-item name='Summer'/>
<enum-item name='Autumn'/>
<enum-item name='Winter'/>
</enum-type>
<!-- This enum is very tentative -->
<enum-type type-name='death_condition_type' base-type='int8_t'>
<enum-item name='no_statement' comment="alive or dead, but death conditions not registered here"/>
<enum-item name='site_battle' comment="parameters: site id + optional structure"/>
<enum-item name='region_battle' comment="parameters: two unknown values, usually small, with same pair being the same region, but neither is region_id"/>
<enum-item name='wilderness' comment="parameters: region_id + -1"/>
<enum-item/>
<enum-item name='entombed' comment="same parameters as for site_battle, but structure seems to always be present and be a tomb"/>
<enum-item name='site' comment="same parameters as for site_battle, old age and deadly confrontation seen"/>
</enum-type>
<enum-type type-name='plot_role_type' base-type='int32_t'>
<enum-item name='None' value='-1'/>
<enum-item name='Possible_Threat'/>
<enum-item name='Rebuffed'/>
<enum-item name='Source_Of_Funds'/>
<enum-item name='Source_Of_Funds_For_Master'/>
<enum-item name='Master'/>
<enum-item name='Suspected_Criminal'/>
<enum-item name='Asset'/>
<enum-item name='Lieutenant'/>
<enum-item name='Usable_Thief'/>
<enum-item name='Potential_Employer'/>
<enum-item name='Indirect_Director' comment="Seen as 'possibly unknown director' in actor's exported XML when influencing the plotter using an intermediary in Legends Mode"/>
<enum-item name='Corrupt_Position_Holder'/>
<enum-item name='Delivery_Target'/>
<enum-item name='Handler'/>
<enum-item name='Usable_Assassin'/>
<enum-item name='Director' comment="Seen with no role or 'potential employer' in actor's exported XML, and as the one influencing the plotter in Legends Mode"/>
<enum-item name='Enemy'/>
<enum-item name='Usable_Snatcher'/>
<enum-item/>
<enum-item/>
<enum-item name='Underworld_Contact'/>
<enum-item name='Possibly_Unknown_Director'/>
</enum-type>
<enum-type type-name='plot_strategy_type' base-type='int32_t'>
<enum-item name='None' value='-1'/>
<enum-item name='Corrupt_And_Pacify'/>
<enum-item name='Obey'/>
<enum-item name='Avoid'/>
<enum-item name='Use'/>
<enum-item name='Tax'/>
<enum-item name='Neutralize'/>
<enum-item name='Monitor'/>
<enum-item name='Work_If_Suited'/>
<enum-item name='Torment'/>
</enum-type>
<struct-type type-name='plot_agreement'>
<int32_t name='actor_id' ref-target='historical_figure'/>
<enum name='plot_role' type-name='plot_role_type'/>
<int32_t name='agreement_id' ref-target='agreement'/>
<bool name='agreement_has_messenger'/>
</struct-type>
<struct-type type-name='historical_figure_info'>
<pointer name="spheres">
<stl-vector>
<enum base-type='int16_t' type-name='sphere_type'/>
</stl-vector>
<stl-vector type-name='int32_t' since='v0.47.01'/>
</pointer>
<pointer name="skills">
<stl-vector name="skills">
<enum base-type='int16_t' type-name='job_skill'/>
</stl-vector>
<stl-vector name="points" type-name='int32_t' index-refers-to='$$._parent.skills[$]'/>
<stl-vector name="professions_held">
<enum base-type='int16_t' type-name='profession'/>
</stl-vector>
<stl-vector name="profession_years" type-name='int32_t' comment="Number of years on each profession above. Need not be consecutive, so non registered periods can happen"/>
only a guess since most of figures have 102 (STANDARD); some have stuff like CLERK, SCOUT, BEAST_HUNTER, etc
<enum base-type='int16_t' name='profession' type-name='profession'/>
<int32_t since='v0.44.01'/>
<int32_t since='v0.47.01'/>
<pointer name='employment_held' since='v0.47.01'>
<stl-vector name='employment'>
<pointer>
<int32_t name='employer' ref-target='historical_entity'/>
<stl-vector type-name='int32_t' ref-target='honors_type' name='held_honors'/>
<int32_t name='battle_count'/>
<int32_t name='kill_count'/>
<int32_t name='employment_year'/>
<int32_t name='employment_year_tick'/>
</pointer>
</stl-vector>
<int32_t name='resignment_year'/>
<int32_t name='resignment_year_tick'/>
</pointer>
</pointer>
<pointer name="pets">
<stl-vector type-name='int16_t' ref-target='creature_raw'/>
</pointer>
<pointer name='personality'>
<compound name='personality' type-name='unit_personality'/>
<int16_t since='v0.44.01'/>
</pointer>
<pointer name="masterpieces">
<stl-vector name="events" type-name='int32_t' ref-target='history_event'/>
<stl-vector name="events2" type-name='int32_t' ref-target='history_event' comment='ones that were stolen or destroyed?'/>
<stl-vector name='unk_v43_1' type-name='int32_t' since='v0.42.06'/>
<stl-vector name='unk_v43_2' type-name='int16_t' since='v0.42.06'/>
</pointer>
<!-- This pointer contents is tentative -->
<pointer name='whereabouts'>
<enum name='whereabouts_type' type-name='whereabouts_type' base-type='int16_t'/>
<int32_t name="site" ref-target='world_site'/>
<int32_t name="region_id" ref-target='world_region'/>
<int32_t name="underground_region_id" ref-target='world_underground_region'/>
<int32_t name="army_id" ref-target='army'/>
<int32_t init-value='-1'/>
<int32_t init-value='-1'/>
<int32_t init-value='-1' name='pos_x' comment='same coordinate system as army'/>
<int32_t init-value='-1' name='pos_y'/>
<bitfield name='flags'>
<flag-bit/>
<flag-bit/>
</bitfield>
<enum name='death_condition' type-name='death_condition_type' base-type='int8_t'/>
<int32_t name='death_condition_parameter_1' init-value='-1' comment="-1/site /?/region_id/?/site /site"/>
<int32_t name='death_condition_parameter_2' init-value='-1' comment="-1/structure/?/-1 /?/structure/structure"/>
<int32_t name='year' since='v0.42.01' init-value='-1' comment="time of arrival at site/region_id, not time of death"/>
<int32_t name='year_tick' since='v0.42.01' init-value='-1'/>
</pointer>
<pointer name="kills" type-name='historical_kills'/>
<pointer name="wounds">
<stl-vector name="events" type-name='int32_t' ref-target='history_event'/>
<stl-bit-vector name="status">
<code-helper name='index-refers-to'>
(let* ((info $$._parent._parent._parent)
(figure $info._parent._parent)
(caste (find-instance $caste_raw $figure.caste $figure.race)))
$caste.body_parts[$])
</code-helper>
</stl-bit-vector>
<int32_t name='childbirth_year'/>
<int32_t name='childbirth_tick'/>
<bitfield name='unk_flags' since='v0.40.19'>
<flag-bit/>
</bitfield>
</pointer>
<pointer name='known_info' since='v0.34.01'>
<stl-vector name='known_secrets' pointer-type='interaction' comment="Interactions inflicted upon the figure through an I_SOURCE:SECRET means are recorded here; this appears to prevent the interaction from affecting the figure again on subsequent exposure (when rereading a necromancy slab, for example). For interactions with both I_SOURCE:SECRET and another source (I_SOURCE:INGESTION, for example), exposure to the interaction through the non-secret route does not result in the interaction being listed here."/>
<int32_t name='unk_10' init-value='-1' comment="All are gods with the DEATH sphere having created slabs, but the value isn't the id of the slab"/>
<stl-vector name='known_written_contents' type-name='int32_t' ref-target='written_content' comment="ID of written_contents known to the historical figure. Aside from the contents of read books, these so-called written contents also include known derivations of poetic forms, dance forms and musical forms" since='v0.42.01'/>
<stl-vector name="known_identities" type-name='int32_t' ref-target='identity' comment="identity ID of identities known to the historical figure, such as demon true names"/>
<stl-vector name='known_witness_reports' pointer-type='witness_report'/>
<stl-vector name='known_events' pointer-type='entity_event'/>
<stl-vector name='unk_4' type-name='int32_t'/>
<stl-vector name='unk_5' type-name='int32_t'/>
<stl-vector name='unk_6' type-name='int32_t' comment="same length as next vector. Some are definitely entities (e.g. player fortress or attacker site government), but others make no such sense"/>
<stl-vector name='unk_7' type-name='int32_t' comment="5, 7, 8 seen. 7/8 only seen on humanoid experiments"/>
<stl-vector name='unk_8'>
<pointer>
<int32_t name='unk_1'/>
<int32_t name='unk_2'/>
<stl-vector name='unk_3' type-name='int32_t'/>
<stl-vector name='unk_4' type-name='int32_t'/>
<stl-vector name='unk_5' type-name='int32_t'/>
<int32_t name='unk_6' since='v0.42.01'/>
</pointer>
</stl-vector>
<stl-vector name="known_poetic_forms" type-name='int32_t' ref-target='poetic_form' since='v0.42.01'/>
<stl-vector name="known_musical_forms" type-name='int32_t' ref-target='musical_form' since='v0.42.01'/>
<stl-vector name="known_dance_forms" type-name='int32_t' ref-target='dance_form' since='v0.42.01'/>
<pointer name="knowledge" since='v0.42.01'>
<bitfield type-name='knowledge_scholar_flags_0' name='philosophy'/>
<bitfield type-name='knowledge_scholar_flags_1' name='philosophy2'/>
<bitfield type-name='knowledge_scholar_flags_2' name='math'/>
<bitfield type-name='knowledge_scholar_flags_3' name='math2'/>
<bitfield type-name='knowledge_scholar_flags_4' name='history'/>
<bitfield type-name='knowledge_scholar_flags_5' name='astronomy'/>
<bitfield type-name='knowledge_scholar_flags_6' name='naturalist'/>
<bitfield type-name='knowledge_scholar_flags_7' name='chemistry'/>
<bitfield type-name='knowledge_scholar_flags_8' name='geography'/>
<bitfield type-name='knowledge_scholar_flags_9' name='medicine'/>
<bitfield type-name='knowledge_scholar_flags_10' name='medicine2'/>
<bitfield type-name='knowledge_scholar_flags_11' name='medicine3'/>
<bitfield type-name='knowledge_scholar_flags_12' name='engineering'/>
<bitfield type-name='knowledge_scholar_flags_13' name='engineering2'/>
<uint32_t name='knowledge_goal_category'/>
<uint32_t name='unk_1'/>
<uint32_t name='unk_2'/>
<uint32_t name='unk_3'/>
<bitfield name='knowledge_goal'>
<flag-bit name='unk0'/>
</bitfield>
<uint32_t name='research_points' comment='research is finished at 100k? amount gained depends on skills, attributes'/>
<uint32_t name='times_pondered' comment='one per ponder no matter what. turns into research_points somewhere around 40-60.'/>
</pointer>
<pointer name='belief_systems' comment="found in prophets; contains the ID of the belief system developed by that particular prophet">
<stl-vector type-name='int32_t' ref-target='belief_system'/>
</pointer>
<pointer name='known_locations'>
<stl-vector>
<pointer>
<int32_t name='site_id' ref-target='world_site'/>
<int32_t name='location_id' ref-target='abstract_building' aux-value='$$.site_id'/>
<int32_t name='unk_2' init-value='-1'/>
<int32_t name='unk_3' init-value='-1'/>
<int32_t name='unk_4' init-value='-1'/>
<int32_t name='unk_5' init-value='-1'/>
<int32_t name='unk_6' comment='increases by 10 when eating in a location'/>
<int32_t name='room_quality' comment='15 times the best dfhack_room_quality_level seen when using this room for an activity'/>
<int32_t name='unk_8'/>
<int32_t name='unk_9'/>
<int32_t name='unk_10'/>
<int32_t name='used_as_temple'/>
<int32_t name='used_as_library'/>
<int32_t name='used_as_tavern'/>
</pointer>
</stl-vector>
</pointer>
<stl-vector name='unk_3' type-name='int32_t' since='v0.47.01'/>
</pointer>
<pointer name='curse' since='v0.34.01'>
<stl-vector name="active_interactions" pointer-type='interaction'/>
<stl-vector name="active_effects" pointer-type='interaction_effect'/>
<stl-vector name="can_do" pointer-type='interaction'/>
<int32_t name="unk_30"/>
<int32_t name="unk_34"/>
<bitfield name="unk_38">
<flag-bit/>
<flag-bit/>
<flag-bit/>
</bitfield>
<bitfield name="unk_3c">
<flag-bit/>
<flag-bit/>
<flag-bit/>
</bitfield>
<int8_t name="unk_40"/>
<stl-string name="name"/>
<stl-string name="name_plural"/>
<stl-string name="name_adjective"/>
<int32_t name='race' ref-target='creature_raw'/>
<int16_t name='caste' ref-target='caste_raw' aux-value='$$.race'/>
<stl-vector name='body_transformation_effects' type-name='int32_t' ref-target='creature_interaction_effect'/>
<stl-vector name='unk_b0' type-name='int32_t'/>
<stl-vector name='body_mat_interaction_effects' type-name='int32_t' ref-target='creature_interaction_effect'/>
<int32_t name="original_histfig_id" ref-target='historical_figure' comment='ID of the historical figure who was reanimated to produce undead historical figure'/>
<int32_t name="original_race" ref-target='creature_raw' comment='race of the historical figure who was reanimated to produce undead historical figure'/>
<int32_t name="original_caste" ref-target='caste_raw' aux-value='$$.original_race' comment='caste of the historical figure who was reanimated to produce undead historical figure'/>
<int32_t name="root_body_part_id" comment='ID of the root body part in the corpse or corpse piece which was reanimated to produce undead historical figure'/>
<stl-string name="undead_name" comment='display name of reanimated creatures in legends mode'/>
<int32_t name="unk_fc"/>
<pointer name='divination' since='v0.47.01'>
<stl-vector name='deities' type-name='int32_t' ref-target='historical_figure' comment='When a divination die is rolled, the historical figure ID of the associated god is inserted here.'/>
<stl-vector name='divination_sets' type-name='int32_t' ref-target='divination_set' comment='When a divination die is rolled, the ID of the associated divination_set is inserted here.'/>
<stl-vector name='roll_results' type-name='int32_t' comment='When a divination die is rolled, the numerical roll result is inserted here.'/>
<stl-vector name='year_rolled' type-name='int32_t' comment='When a divination die is rolled, the cur_year value at the time of rolling is inserted here.'/>
<stl-vector name='year_tick_rolled' type-name='int32_t' comment='When a divination die is rolled, the cur_year_tick at the time of rolling is inserted here.'/>
<int32_t name='fate_sealed' comment='This is set to 1 when a divination die is rolled excessively in a given timespan, preventing all future divination die rolls from having an effect. Attempts at further divination will produce the following message instead: Your fate is sealed.'/>
</pointer>
<pointer name='experiments' since='v0.47.01'>
<stl-vector name='unk_1' type-name='int32_t'/>
<stl-vector name='races' type-name='int32_t' comment='contains IDs of races created by the historical figure through experimentation'/>
</pointer>
</pointer>
<pointer name='books' since='v0.34.01' comment="seems to be misnamed. Artifacts seen have been of all kinds">
<stl-vector name='artifacts_held' pointer-type='artifact_record' comment="held as in possession, doesn't include stored"/>
<int32_t name='unk_1' since='v0.44.01' comment="values seen: 0, 3, 69, 164, 178, 226, 514"/>
<int32_t name='unk_2' since='v0.47.01' comment="values seen: 0-5"/>
<static-array name='unk_3' type-name='int32_t' count='13' since='v0.44.06' comment="wildly varying contents. Probably unitialized, as at least some change when same save reloaded"/>
<static-array name='unk_4' type-name='int32_t' count='13' since='v0.44.06' comment="ditto"/>
<bitfield name='flags' base-type='uint32_t' since='v0.44.06'>
<flag-bit/>
<flag-bit/>
<flag-bit/>
<flag-bit/>
</bitfield>
<int16_t name='unk_5' since='v0.44.06' comment='not saved'/>
<pointer name='unk_6' since='v0.47.01'>
<stl-vector name='unk_1'>
<pointer>
<int32_t name='unk_1'/>
<int32_t name='unk_2'/>
</pointer>
</stl-vector>
<int32_t name='unk_2'/>
</pointer>
</pointer>
<pointer name='reputation' since='v0.34.01'>
<stl-vector name="wanted">
<pointer>
<compound name='unk'>
<int32_t name='entity_id' ref-target='historical_entity'/>
<stl-vector name='types'><enum type-name='reputation_type'/></stl-vector>
<stl-vector name='levels' type-name='int32_t' comment='1 to 100: rumored to legendary'/>
<int32_t name="discovered_year"/>
<int32_t name="discovered_time"/>
<int32_t name="unsolved_murders"/>
there's an unused dword here on 64-bit
</compound>
<int32_t name='unk_1' since='v0.47.01'/>
<int32_t name='unk_2' init-value='-1' since='v0.47.01'/>
<int32_t name='unk_3' since='v0.47.01'/>
</pointer>
</stl-vector>
<stl-vector> different from above - this might be wanted.unk
<pointer>
<int32_t name='entity_id' ref-target='historical_entity'/>
Constructor and save/load code handles the following 5 fields as if they were a compound, separate from the integer above
<stl-vector type-name='int32_t'/>
<stl-vector type-name='int32_t'/>
<int32_t name="discovered_year"/>
<int32_t name="discovered_time"/>
<int32_t name="unsolved_murders"/>
</pointer>
</stl-vector>
<int32_t name="cur_identity" ref-target='identity'/>
<stl-vector name="all_identities" type-name='int32_t' ref-target='identity'/>
<int32_t name='next_identity_idx'/>
<pointer name='unk_2c' since='v0.44.01'>
<int32_t name='unk_1'/>
<int32_t name='unk_2'/>
<int32_t name='unk_3'/>
<int32_t name='unk_4'/>
<int32_t name='unk_5'/>
<int32_t name='unk_6'/>
<int32_t name='unk_7'/>
<int32_t name='unk_8'/>
<int32_t name='unk_9'/>
<int32_t name='unk_10'/>
<int32_t name='unk_11'/>
<stl-vector name='unk_12'>
<pointer>
<int32_t name='unk_1'/>
<int32_t name='unk_2'/>
<int32_t name='unk_3'/>
<int32_t name='unk_4'/>
<int32_t name='unk_5'/>
<int32_t name='unk_6'/>
</pointer>
</stl-vector>
<stl-vector name='unk_13' type-name='int32_t' since='v0.44.01'/>
</pointer>
</pointer>
<pointer name='relationships' type-name='historical_figure_relationships'/>
</struct-type>
<struct-type type-name='historical_figure_relationships'>
<stl-vector name='hf_visual'>
<pointer>
<int32_t name='histfig_id' ref-target='historical_figure'/>
<bitfield name='flags'>
<flag-bit name='information_source'/>
<flag-bit/>
<flag-bit name='believes_false_identity'/>
</bitfield>
<stl-vector name='unk_2v' type-name='int32_t'/>
<stl-vector name="attitude">
<enum type-name='reputation_type' comment="Probably ordered"/>
</stl-vector>
<stl-vector name="counter" type-name='int32_t' comment="One element for each 'attitude' element. Guess 0 - 100"/>
<int16_t name='rank' init-value='-1' comment="seems to be fixed. Might not be used anymore" since='v0.47.01'/>
<int32_t name='loyalty' comment="0 - 100. Loyalty, Respect, Fear, and Trust values do not seem to affect the relationship screen description, only Love and Familiarity"/>
<int32_t name='respect' comment="-100 - 100"/>
all 0xfff0bdc0 = -1000000
<int32_t name='fear' comment="-100 - 100"/>
<int32_t name='love' comment="-100 - 100. Affects relation description: -100: Pure Hate, LE -75: Hated, LE -50: Disliked, LE 49: Acquaintance, LE 74: Friend, LE 99: Close Friend, 100: Kindred Spirit. Lower histfig_id is sorted above higher, except Acquaintance which is sorted on Familiarity"/>
<int32_t name='trust' comment="-100 - 100"/>
<int32_t name='familiarity' comment="Shifts from 'Passing' to 'Long-term' Acquaintance at 30, but a Love value other than Acquaintance takes presedence. Higher Familiarity is sorted above lower, with lower histfig_id is sorted above higher on a tie"/>
<int32_t name='last_meet_year' comment="probably latest contact. Seen -1"/>
<int32_t name='last_meet_seconds72'/>
<int32_t name='meet_count' since='v0.44.10'/>
<int32_t name='unk_2' comment='duplicates meet_count?' since='v0.44.10'/>
<int32_t name='unk_3' comment='duplicates meet_count?' since='v0.44.10'/>
<int32_t name='unk_4' since='v0.47.01'/>
<int32_t name='unk_5' since='v0.47.01'/>
<int32_t name='unk_6' since='v0.47.01'/>
<int32_t name='unk_7' since='v0.47.01'/>
<int32_t name='unk_8' comment='only seen 0' since='v0.47.01'/>
<int32_t name='unk_9' comment='only seen 0' since='v0.47.01'/>
<int32_t name='first_year' comment="pair less than or equal to year. Guessing it's first contact" since='v0.47.01'/>
<int32_t name='first_year_tick' since='v0.47.01'/>
</pointer>
</stl-vector>
<!--
Entries with a 'rank' value of zero are suppressed from display. Display order seems to depend on
the value of the first 'attitude' entry.
Buddy/Grudge/AnimalPartner entries forms the primary group, sorted in ascending histfig id order.
The secondary group consists of Friendly, where the internal sort order is based on higher 'rank'.
If the 'rank' is equal the histfig id determines the order.
The tertiary group consists of zero length 'attitude' entries. Those are again sorted based on higher
'rank', with histfig id breaking ties.
Note that only the entries listed above have been observed as the first 'attitude' element, with others
optionally added as well. This does not mean they may not exist, but that the sort order described above
may be incomplete.
The role of 'counter' is unknown, but might somehow tick over into an increase in rank. It does not seem
to play any part in the display sort order.
-->
<stl-vector name='hf_historical' since='v0.44.01'>
<pointer>
<int32_t name='histfig_id' ref-target='historical_figure'/>
<stl-vector type-name='int32_t'/>
<stl-vector type-name='int32_t'/>
<stl-vector type-name='int32_t'/>
<int32_t name='loyalty' comment="0 - 100" since='v0.47.01'/>
<int32_t name='respect' comment="-100 - 100" since='v0.47.01'/>
<int32_t name='fear' comment="-100 - 100" since='v0.47.01'/>
<int32_t name='love' comment="-100 - 100" since='v0.47.01'/>
<int32_t name='trust' comment="-100 - 100" since='v0.47.01'/>
</pointer>
</stl-vector>
<stl-vector since='v0.44.01'>
<pointer>
<int32_t/>
<stl-vector type-name='int32_t'/>
<stl-vector type-name='int32_t'/>
guessing these are the same 5 fields as above, since they have the same version threshold
<int32_t name='loyalty' comment="0 - 100" since='v0.47.01'/>
<int32_t name='respect' comment="-100 - 100" since='v0.47.01'/>
<int32_t name='fear' comment="-100 - 100" since='v0.47.01'/>
<int32_t name='love' comment="-100 - 100" since='v0.47.01'/>
<int32_t name='trust' comment="-100 - 100" since='v0.47.01'/>
</pointer>
</stl-vector>
<stl-vector name='identities' type-name='int32_t' ref-target='cultural_identity'/>
<stl-vector name='artifact_claims' since='v0.44.01'>
<pointer>
<int32_t name='artifact_id' ref-target='artifact_record'/>
<int32_t comment="only 2 seen"/>
<int32_t name='year'/>
<int32_t name='year_tick'/>
<int32_t init-value='-1'/>
</pointer>
</stl-vector>
<int32_t/>
<pointer name='intrigues'>
<stl-vector name='potential_corrupt_skill'>
<comment>
only CONVERSATION, INTIMIDATION, and LYING seen;
could easily be an entirely different type
</comment>
<enum type-name='job_skill' base-type='int32_t'/>
</stl-vector>
<stl-vector name='potential_corrupt_target'>
<compound is-union='true' union-tag-field='potential_corrupt_skill'>
<int32_t init-value='-1' name='LYING'/>
<int32_t ref-target='historical_entity' name='INTIMIDATION'/>
<enum type-name='value_type' base-type='int32_t' name='CONVERSATION'/>
</compound>
</stl-vector>
<stl-vector name='potential_corrupt_circumstance'>
<enum type-name='unit_thought_type' base-type='int32_t'/>
</stl-vector>
<stl-vector name='potential_corrupt_unk4' type-name='int32_t' init-value='-1' comment='only -1 seen'/>
<stl-vector name='plots'>
<pointer>
<int32_t name='id' comment="starts as index in parent vector"/>
<enum name='plot_type' base-type='int32_t'>
<enum-item name='None' value='-1'/>
<enum-item name='Grow_Funding_Network'/>
<enum-item name='Grow_Asset_Network'/>
<enum-item name='Acquire_Artifact'/>
<enum-item name='Grow_Corruption_Network'/>
<enum-item name='Attain_Rank'/>
<enum-item name='Assassinate_Actor'/>
<enum-item name='Corruptly_Punish_Actor'/>
<enum-item name='Frame_Actor'/>
<enum-item name='Kidnap_Actor'/>
<enum-item name='Sabotage_Actor'/>
<enum-item name='Direct_War_To_Actor'/>
<enum-item name='Corrupt_Actors_Government'/>
<enum-item name='Counterintelligence'/>
<enum-item name='Become_Immortal'/>
<enum-item name='Undead_World_Conquest'/>
<enum-item name='Infiltrate_Society'/>
</enum>
<int32_t name='parameter' init-value='-1' comment="0/3/5:local_id, 2:artifact_id, 7/8/9/10/11:actor_id, 12/15:entity_id, 1/4:not seen"/>
<int32_t name='on_hold'/>
<stl-vector name='plot_agreements' pointer-type='plot_agreement'/>
<compound name='plot_data' is-union='true'>
<pointer name='None' comment="seems uninitialized"/>
<pointer name='Grow_Funding_Network' comment="seems uninitialized"/>
<pointer name='Grow_Asset_Network' comment="pointer not seen"/>
<pointer name='Acquire_Artifact' comment="seems uninitialized"/>
<pointer name='Grow_Corruption_Network' comment="seems uninitialized"/>
<pointer name='Attain_Rank' comment="pointer not seen"/>
<pointer name='Assassinate_Actor' comment="pointer not seen"/>
<pointer name='Corruptly_Punish_Actor'/>
<pointer name='Frame_Actor' comment="seems uninitialized"/>
<pointer name='Kidnap_Actor' comment="pointer not seen"/>
<pointer name='Sabotage_Actor'>
<int32_t name='unk_1' init-value='-1' comment="not seen anything else"/>
<int32_t name='unk_2' init-value='-1' comment="not seen anything else"/>
</pointer>
<pointer name='Direct_War_To_Actor' comment="pointer not seen"/>
<pointer name='Corrupt_Actors_Government' comment="pointer not seen"/>
<pointer name='Counterintelligence' comment="pointer not seen"/>
<pointer name='Become_Immortal' comment="pointer not seen"/>
<pointer name='Undead_World_Conquest'>
<stl-vector name='unk5_t14_1' type-name='int32_t' comment="seems like sorted sequence of double digit numbers"/>
</pointer>
<pointer name='Infiltrate_Society'>
<int32_t name='action' comment="8:prepare coup, 9:steal treasures and prepare coup. Bitmap?"/>
<int32_t name='unk5_t15_2' init-value='-1' comment="not seen anything else"/>
<int32_t name='unk5_t15_3' init-value='0' comment="not seen anything else"/>
</pointer>
</compound>
<int32_t name='delegated_plot_id' init-value='-1'/>
<int32_t name='delegated_plot_hfid' ref-target='historical_figure'/>
<int32_t name='parent_plot' init-value='-1'/>
<int32_t name='parent_plot_hfid' ref-target='historical_figure'/>
<int32_t name='agreement' ref-target='agreement'/>
<int32_t name='actor_nemesis_id' ref-target='nemesis_record'/>
<int32_t name='unk5_13' init-value='-1' comment="0-8 seen"/>
<int32_t name='plotter_nemesis_id' ref-target='nemesis_record'/>
<int32_t name='unk5_15' init-value='-1' comment="0-5 seen"/>
</pointer>
</stl-vector>
<int32_t name='next_plot_id'/>
<stl-vector name='revealed_agreements' pointer-type='agreement'/>
<stl-vector name='agreemeents' pointer-type='agreement'/>
<stl-vector name='intrigue'>
<pointer>
<int32_t name='id' comment="index into the parent vector (at least initially)"/>
<int32_t name='unk9_2' comment="0 seen"/>
<int32_t name='hf_1' ref-target='historical_figure' comment="visual relation seen"/>
<int32_t name='hf_2' ref-target='historical_figure' comment="visual relation seen"/>
<int32_t name='unk9_5' init-value='-1'/>
<int32_t name='unk9_6' ref-target='historical_entity' comment="site government seen. Target? Possible threat?"/>
<int32_t name='handle_actor_id' init-value='-1' comment="based on exported XML instances"/>
<enum name='role' type-name='plot_role_type' base-type='int32_t'/>
<enum name='strategy' type-name='plot_strategy_type' base-type='int32_t'/>
<int32_t name='unk9_10' ref-target='historical_entity' comment="site government seen. Target? Member of/possible threat?"/>
<int32_t name='unk9_11' init-value='-1' comment='1 seen'/>
<stl-vector name='unk9_12' type-name='int32_t'/>
</pointer>
</stl-vector>
<int32_t name='next_intrigue_id'/>
<stl-vector name='unk11' type-name='int32_t' comment="4 bytes allocated observed, which cant' host a pointer"/>
<stl-vector name='unk12'>
<pointer>
<int32_t/>
<int32_t name='unk_4'/>
<int32_t/>
<compound name='unk_data' is-union='true'> based on unk_4
<pointer name='ptr_0'>
<int32_t/>
<int32_t/>
<int32_t/>
<int32_t/>
</pointer>
<pointer name='ptr_1'>
<int32_t/>
<int32_t/>
<int32_t/>
</pointer>
<pointer name='ptr_2'>
</pointer>
<pointer name='ptr_3'/>
this one has ANOTHER union inside it, sized at 11 32-bit integers and having 6 subtypes
followed by another 3 integers
</compound>
</pointer>
</stl-vector>
<int32_t name='unk13'/>
<stl-vector name='unk14'>
<pointer/> - this is the same 6-subtype 11-integer union seen immediately above in ptr_3
</stl-vector>
<int32_t name='unk15'/>
<int32_t name='unk16' init-value='-1'/>
<int32_t name='unk17' init-value='-1'/>
</pointer>
</struct-type>
<enum-type type-name='histfig_flags'>
<enum-item name='reveal_artwork'/>
<enum-item name='equipment_created'/>
<enum-item name='deity'/>
<enum-item name='force'/>
<enum-item name='skeletal_deity'/>
<enum-item name='rotting_deity'/>
<enum-item name='worldgen_acted'/>
<enum-item name='ghost'/>
<enum-item name='skin_destroyed'/>
<enum-item name='meat_destroyed'/>
<enum-item name='bones_destroyed'/>
<enum-item name='brag_on_kill'/>
<enum-item name='kill_quest'/>
<enum-item name='chatworthy'/>
<enum-item name='flashes'/>
<enum-item name='never_cull'/>
</enum-type>
<enum-type type-name='histfig_relationship_type' base-type='int16_t'>
-- Can be checked through viewscreen_layer_unit_relationshipst
<enum-item name='None' value='-1'/>
<enum-item name='Mother'/>
<enum-item name='Father'/>
<enum-item name='Parent'/>
<enum-item name='Husband'/>
<enum-item name='Wife'/>
<enum-item name='Spouse'/>
<enum-item name='SonEldest'/>
<enum-item name='SonEldest2'/>
<enum-item name='SonEldest3'/>
<enum-item name='SonEldest4'/>
-- 10
<enum-item name='SonEldest5'/>
<enum-item name='SonEldest6'/>
<enum-item name='SonEldest7'/>
<enum-item name='SonEldest8'/>
<enum-item name='SonEldest9'/>
<enum-item name='SonEldest10'/>
<enum-item name='Son'/>
<enum-item name='SonYoungest'/>
<enum-item name='SonOnly'/>
<enum-item name='DaughterEldest'/>
-- 20
<enum-item name='DaughterEldest2'/>
<enum-item name='DaughterEldest3'/>
<enum-item name='DaughterEldest4'/>
<enum-item name='DaughterEldest5'/>
<enum-item name='DaughterEldest6'/>
<enum-item name='DaughterEldest7'/>
<enum-item name='DaughterEldest8'/>
<enum-item name='DaughterEldest9'/>
<enum-item name='DaughterEldest10'/>
<enum-item name='Daughter'/>
-- 30
<enum-item name='DaughterOnly'/>
<enum-item name='DaughterYoungest'/>
<enum-item name='ChildEldest'/>
<enum-item name='ChildEldest2'/>
<enum-item name='ChildEldest3'/>
<enum-item name='ChildEldest4'/>
<enum-item name='ChildEldest5'/>
<enum-item name='ChildEldest6'/>
<enum-item name='ChildEldest7'/>
<enum-item name='ChildEldest8'/>
-- 40
<enum-item name='ChildEldest9'/>
<enum-item name='ChildEldest10'/>
<enum-item name='Child'/>
<enum-item name='ChildYoungest'/>
<enum-item name='ChildOnly'/>
<enum-item name='PaternalGrandmother'/>
<enum-item name='PaternalGrandfather'/>
<enum-item name='MaternalGrandmother'/>
<enum-item name='MaternalGrandfather'/>
<enum-item name='Grandmother'/>
-- 50
<enum-item name='Grandfather'/>
<enum-item name='Grandparent'/>
<enum-item name='OlderBrother'/>
<enum-item name='OlderSister'/>
<enum-item name='OlderSibling'/>
<enum-item name='YoungerBrother'/>
<enum-item name='YoungerSister'/>
<enum-item name='YoungerSibling'/>
<enum-item name='Cousin'/>
<enum-item name='Aunt'/>
-- 60
<enum-item name='Uncle'/>
<enum-item name='Niece'/>
<enum-item name='Nephew'/>
<enum-item name='Sibling'/>
<enum-item name='Grandchild'/>
<enum-item name='OlderHalfBrother' since='v0.47.01' comment="'since' valid for this entry and those below"/>
<enum-item name='OlderHalfSister'/>
<enum-item name='OlderHalfSibling'/>
<enum-item name='YoungerHalfBrother'/>
<enum-item name='YoungerHalfSister'/>
-- 70
<enum-item name='YoungerHalfSibling'/>
<enum-item name='HalfSibling'/>
</enum-type>
<enum-type type-name='vague_relationship_type' base-type='int16_t' comment="not a great name given that lovers, ex lovers, and lieutenants appear here, but histfig and unit are both used...">
<enum-item name='none' value='-1'/>
<enum-item name='childhood_friend'/>
<enum-item name='war_buddy'/>
<enum-item name='jealous_obsession'/>
<enum-item name='jealous_relationship_grudge'/>
<enum-item name='lover'/>
<enum-item name='former_lover' comment="broke up"/>
<enum-item name='scholar_buddy'/>
<enum-item name='artistic_buddy'/>
<enum-item name='athlete_buddy'/>
<enum-item name='atheletic_rival'/>
<enum-item name='business_rival'/>
<enum-item name='religious_persecution_grudge'/>
<enum-item name='grudge'/>
<enum-item name='persecution_grudge'/>
<enum-item name='supernatural_grudge'/>
<enum-item name='lieutenant'/>
<enum-item name='worshipped_deity'/>
<enum-item name='spouse'/>
<enum-item name='mother'/>
<enum-item name='father'/>
<enum-item name='master'/>
<enum-item name='apprentice'/>
<enum-item name='companion'/>
<enum-item name='ex_spouse'/>
<enum-item name='neighbor'/>
<enum-item name='shared_entity' comment="Religion/PerformanceTroupe/MerchantCompany/Guild"/>
</enum-type>
<struct-type type-name='historical_figure' instance-vector='$global.world.history.figures' key-field='id'>
<enum base-type='int16_t' name='profession' type-name='profession'/>
<int16_t name='race' ref-target='creature_raw'/>
<int16_t name='caste' ref-target='caste_raw' aux-value='$$.race'/>
<enum name='sex' type-name='pronoun_type'/>
<bitfield type-name='orientation_flags' name='orientation_flags'/>
<int32_t name='appeared_year'/>
<int32_t name='born_year'/>
<int32_t name='born_seconds'/>
<int32_t name='curse_year' since='v0.34.01'/>
<int32_t name='curse_seconds' 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'/>
<int32_t name='old_seconds'/>
<int32_t name='died_year'/>
<int32_t name='died_seconds'/>
<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>
<int32_t name='civ_id' ref-target='historical_entity'/>
<int32_t name='population_id' ref-target='entity_population'/>
<int32_t name='breed_id' comment='from legends export'/>
<int32_t name='cultural_identity' ref-target='cultural_identity' since='v0.40.01'/>
<int32_t name='family_head_id' ref-target='historical_figure' since='v0.44.01' comment='When a unit is asked about their family in adventure mode, the historical figure corresponding to this ID is called the head of the family or ancestor.'/>
<df-flagarray name='flags' index-enum='histfig_flags'/>
<int32_t name='unit_id' ref-target='unit'/>
<int32_t name='nemesis_id' ref-target='nemesis_record' since='v0.40.01' comment='sometimes garbage'/>
<int32_t name='id'/>
<int32_t name='unk4'/>
<stl-vector name='entity_links' pointer-type='histfig_entity_link'/>
<stl-vector name='site_links' pointer-type='histfig_site_link'/>
<stl-vector name='histfig_links' pointer-type='histfig_hf_link'/>
<pointer name='info' type-name='historical_figure_info'/>
<pointer name='vague_relationships' comment="Do not have to be available mutually, i.e. DF can display Legends relations forming for the other party that does not have an entry (plus time and other conditions not located)">
<static-array name='hfid' ref-target='historical_figure' type-name='int32_t' init-value='0' count='6'/>
<static-array name='relationship' type-name='vague_relationship_type' count='6' comment="unused elements are uninitialized"/>
<int32_t name='count' comment="number of hf/relationship pairs above"/>
</pointer>
<pointer name="unk_f0" type-name="world_site"/>
<pointer name="unk_f4" type-name="world_region"/>
<pointer name="unk_f8" type-name="world_underground_region"/>
<pointer name="unk_fc">
<df-array name="unk_0" type-name='uint8_t'/>
<df-array name="unk_8" type-name='int16_t'/>
</pointer>
<pointer name="unk_v47_2">
<pointer name='unk_1' type-name='historical_figure'/>
<pointer name='unk_2' type-name='historical_figure'/>
<pointer name='unk_3' type-name='historical_figure'/>
<pointer name='unk_4' type-name='historical_figure'/>
<pointer name='unk_5' type-name='historical_figure'/>
<pointer name='unk_6' type-name='historical_figure'/>
<int16_t name='unk_7'/>
<int16_t name='unk_8'/>
<int16_t name='unk_9'/>
<int16_t name='unk_10'/>
<int16_t name='unk_11'/>
<int16_t name='unk_12'/>
<int32_t name='unk_13'/>
<pointer name='unk_14' type-name='historical_figure'/>
<pointer name='unk_15' type-name='historical_figure'/>
<pointer name='unk_16' type-name='historical_figure'/>
</pointer>
<int32_t name="unk_v47_3"/>
<int32_t name="unk_v47_4"/>
<int32_t name='unk_v4019_1' init-value='-1' since='v0.40.17-19'/>
<int32_t name='unk_5' init-value='-1'/>
</struct-type>
<enum-type type-name='identity_type' base-type='int32_t'>
<enum-attr name='id_tag' comment='for identity.id'/>
<enum-item name='None' value='-1' comment="Seen on adventurer assuming an identity for reasons unknown">
<item-attr name='id_tag' value='histfig_id'/>
</enum-item>
<enum-item name='HidingCurse' comment="Inferred from Units.cpp after examining code using 'unk_4c'">
<item-attr name='id_tag' value='histfig_id'/>
</enum-item>
<enum-item name='Impersonating' comment="Seen where primeval creatures impersonate 'real' gods in modded game">
<item-attr name='id_tag' value='histfig_id'/>
</enum-item>
<enum-item name='TrueName' comment="E.g. of demonic overlords. Can be used by adventurers to gain sway over them">
<item-attr name='id_tag' value='histfig_id'/>
</enum-item>
<enum-item name='FalseIdentity' comment="For underhanded purposes">
<item-attr name='id_tag' value='nemesis_id'/>
</enum-item>
<enum-item name='InfiltrationIdentity' comment="A guess. The cases seen all had the HFs fool the same entity that they were members of it, but no actual purpose was seen">
<item-attr name='id_tag' value='histfig_id'/>
</enum-item>
<enum-item name='Identity' comment="Claim a new official identity, seen when religious appointments are received">
<item-attr name='id_tag' value='histfig_id'/>
</enum-item>
</enum-type>
<struct-type type-name='identity'
instance-vector='$global.world.identities.all' key-field='id'>
dtor 0x8C17FA0
<int32_t name='id'/>
<compound name='name' type-name='language_name' comment="Not used when Impersonating"/>
<code-helper name='describe'>
(describe-obj $.name)
(awhen (find-creature $.race)
(fmt "~:(~A ~A~)" $it.caste[$.caste].caste_id $it.creature_id))
</code-helper>
<int32_t name='race' ref-target='creature_raw'/>
<int16_t name='caste' ref-target='caste_raw' aux-value='$$.race'/>
<int32_t name='impersonated_hf' ref-target='historical_figure' comment="only when Impersonating"/>
<compound is-union='true' union-tag-attr='id_tag'>
<int32_t name='histfig_id' ref-target='historical_figure'/>
<int32_t name='nemesis_id' ref-target='nemesis_record'/>
</compound>
<enum name='type' type-name='identity_type' base-type='int32_t'/>
<int32_t name='birth_year' comment='the fake one, that is'/>
<int32_t name='birth_second'/>
<int32_t name='unk_2'/>
<int32_t name='unk_3'/>
<int16_t name='unk_v47_1' init-value='-1'/>
<int32_t name='unk_v47_2' init-value='-1'/>
<enum name='profession' type-name='profession' base-type='int16_t'/>
<int32_t name='entity_id' ref-target='historical_entity'/>
<stl-vector name='unk_4' pointer-type='identity_unk_94'/>
<stl-vector name='unk_5' pointer-type='identity_unk_95'/>
</struct-type>
<struct-type type-name='identity_unk_94'>
<int32_t name='unk_0'/>
<stl-vector name='unk_1' type-name='int32_t'/>
<stl-vector name='unk_2' type-name='int32_t'/>
<int32_t name='unk_3' init-value='-1'/>
<int32_t name='unk_4' init-value='-1'/>
<int32_t name='unk_5'/>
<int32_t name='unk_6' comment='uninitialized'/>
<int32_t name='unk_7'/>
<int32_t name='unk_8' init-value='-1'/>
<int32_t name='unk_9' comment='uninitialized'/>
</struct-type>
<struct-type type-name='identity_unk_95'>
<int32_t name='unk_0' init-value='-1'/>
<stl-vector name='unk_1' type-name='int32_t'/>
<stl-vector name='unk_2' type-name='int32_t'/>
<int32_t name='unk_3' init-value='-1'/>
<int32_t name='unk_4' init-value='-1'/>
<int32_t name='unk_5'/>
</struct-type>
<enum-type type-name='mental_picture_property_type'>
<enum-item name='DATE'/>
<enum-item name='ACTION'/>
<enum-item name='TOOL'/>
<enum-item name='EMOTION'/>
<enum-item name='COLOR_PATTERN'/>
<enum-item name='SHAPE'/>
<enum-item name='ADJECTIVE'/>