-
Notifications
You must be signed in to change notification settings - Fork 81
/
df.history.xml
3894 lines (3498 loc) · 204 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' original-name='kill_profilest'>
-- 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'> not a real structure, contents declared inline in all known locations
<int32_t name='item' ref-target='item'/>
<enum 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 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'> bay12: PersonalReputationType
<enum-item name='Hero'/>
<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>
<enum-type type-name='whereabouts_type' base-type='int16_t'> bay12: HistFigStateType
<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'> bay12: SeasonType, int32
<enum-item name='None' value='-1'/>
<enum-item name='Spring'/>
<enum-item name='Summer'/>
<enum-item name='Autumn'/>
<enum-item name='Winter'/>
</enum-type>
<enum-type type-name='death_condition_type' base-type='int8_t'> bay12: HistFigBodyState
<enum-item name='NONE' value='-1'/>
<enum-item name='no_statement' comment="bay12: ACTIVE; alive or dead, but death conditions not registered here"/>
<enum-item name='site_battle' comment="bay12: BURIED_AT_SITE; parameters: site id + optional structure"/>
<enum-item name='region_battle' comment="bay12: UNBURIED_AT_BATTLEFIELD; parameters: two unknown values, usually small, with same pair being the same region, but neither is region_id"/>
<enum-item name='wilderness' comment="bay12: UNBURIED_AT_SUBREGION; parameters: region_id + -1"/>
<enum-item name='feature_layer' comment='bay12: UNBURIED_AT_FEATURE_LAYER'/>
<enum-item name='entombed' comment="bay12: ENTOMBED_AT_SITE; same parameters as for site_battle, but structure seems to always be present and be a tomb"/>
<enum-item name='site' comment="bay12: UNBURIED_AT_SITE; 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'> bay12: IntrigueRoleType
<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="Plot Thief"/>
<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="Plot Assassin"/>
<enum-item name='Enemy'/>
<enum-item name='Usable_Snatcher'/>
<enum-item name='Plot_Snatcher'/>
<enum-item name='Plot_Saboteur'/>
<enum-item name='Underworld_Contact'/>
<enum-item name='Possibly_Unknown_Director'/>
</enum-type>
<enum-type type-name='plot_strategy_type' base-type='int32_t'> bay12: IntrigueStrategyType
<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' original-name='intrigue_plot_actorst'>
<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'/>
<bitfield name='flags' base-type='uint32_t'> bay12: INTRIGUE_PLOT_ACTOR_FLAG_*
<flag-bit name='agreement_has_messenger'/>
</bitfield>
</struct-type>
<struct-type type-name='state_profilest'>
<enum name='state' type-name='whereabouts_type' base-type='int16_t'/>
<int32_t name="site_id" ref-target='world_site'/>
<int32_t name="subregion_id" ref-target='world_region'/>
<int32_t name="feature_layer_id" ref-target='world_underground_region'/>
<int32_t name="army_id" ref-target='army'/>
<int32_t name='cz_id' ref-target='world_object_data'/>
<int32_t name='cz_bld_num' init-value='-1'/>
<int32_t init-value='-1' name='abs_smm_x' comment='same coordinate system as army'/>
<int32_t init-value='-1' name='abs_smm_y'/>
<bitfield name='flags'> bay12: STATE_PROFILE_FLAG_*
<flag-bit name='XY_LOCATION_SMM_LEVEL'/>
<flag-bit name='XY_LOCATION_IN_SUL'/>
</bitfield>
<enum name='body_state' type-name='death_condition_type' base-type='int8_t' init-value='NONE'/>
<int32_t name='body_state_id' init-value='-1' comment="-1/site /?/region_id/?/site /site"/>
<int32_t name='body_state_sub_id' 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'/>
</struct-type>
<enum-type type-name='research_project_type' base-type='int32_t'> bay12: ResearchProjectType
<enum-item name='None' value='-1'/>
<enum-item name='PHILOSOPHY_FLAG'/>
<enum-item name='PHILOSOPHY_FLAG2'/>
<enum-item name='MATHEMATICS_FLAG'/>
<enum-item name='MATHEMATICS_FLAG2'/>
<enum-item name='HISTORY_FLAG'/>
<enum-item name='ASTRONOMY_FLAG'/>
<enum-item name='NATURALIST_FLAG'/>
<enum-item name='CHEMISTRY_FLAG'/>
<enum-item name='GEOGRAPHY_FLAG'/>
<enum-item name='MEDICINE_FLAG'/>
<enum-item name='MEDICINE_FLAG2'/>
<enum-item name='MEDICINE_FLAG3'/>
<enum-item name='ENGINEERING_FLAG'/>
<enum-item name='ENGINEERING_FLAG2'/>
</enum-type>
<enum-type type-name='abstract_building_reputation_type' base-type='int32_t'> bay12: AbstractBuildingReputationType
<enum-item name='DRINK_AVAILABILITY'/>
<enum-item name='ARCHITECTURE_QUALITY'/>
<enum-item name='KNOWLEDGE_QUALITY'/>
<enum-item name='DANGER'/>
<enum-item name='DELAY'/>
<enum-item name='ABILITY_TO_PRAY'/>
<enum-item name='ABILITY_TO_RESEARCH'/>
<enum-item name='ABILITY_TO_RELAX'/>
</enum-type>
<enum-type type-name='night_creature_experiment_type' base-type='int32_t'> bay12: NightCreatureExperimentType
<enum-item name='HUMANOID'/>
<enum-item name='HUMANOID_GIANT'/>
<enum-item name='BEAST_SMALL'/>
<enum-item name='BEAST_LARGE'/>
<enum-item name='FAILED_EXPERIMENT_SMALL'/>
<enum-item name='FAILED_EXPERIMENT_LARGE'/>
</enum-type>
<enum-type type-name='inventory_profile_skill_type' base-type='int32_t'> bay12: InvPSkillType
<enum-item name='AXE'/>
<enum-item name='SWORD'/>
<enum-item name='DAGGER'/>
<enum-item name='MACE'/>
<enum-item name='HAMMER'/>
<enum-item name='SPEAR'/>
<enum-item name='CROSSBOW'/>
<enum-item name='PIKE'/>
<enum-item name='WHIP'/>
<enum-item name='BOW'/>
<enum-item name='BLOWGUN'/>
<enum-item name='SHIELD'/>
<enum-item name='ARMOR'/>
</enum-type>
<struct-type type-name='knowledge_profilest'>
<stl-vector name='known_secrets' pointer-type='interaction' comment="bay12: interation_ptr; 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='next_intervention_resistance_year' 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="bay12: read_written_content_id; 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="bay12: identity_known_id; identity ID of identities known to the historical figure, such as demon true names"/>
<stl-vector name='known_witness_reports' pointer-type='witness_incidentst' comment='bay12: witness_incident'/>
<!-- <compound name='rumor_info' type-name='rumor_infost'/> instead of the following line -->
<stl-vector name='known_events' pointer-type='entity_event'/>
<stl-vector name='heard_of_guide_hfid' type-name='int32_t'/>
<stl-vector name='heard_of_stid' type-name='int32_t'/>
<compound name='opinion_info' type-name='opinion_infost'/>
<stl-vector name='creature_knowledge'>
<pointer> bay12: creature_knowledgest
<int32_t name='combined_caste_id'/>
<bitfield name='flags' base-type='uint32_t'> bay12: CREATURE_KNOWLEDGE_FLAG_*
<flag-bit name='heard_of'/>
<flag-bit name='old_local'/>
<flag-bit name='recent_encounter'/>
</bitfield>
<stl-vector name='site' type-name='int32_t' ref-target='world_site'/>
<stl-vector name='region' type-name='int32_t' ref-target='world_region'/>
<stl-vector name='layer' type-name='int32_t' ref-target='world_underground_region'/>
<bitfield name='scholar_flags' base-type='uint32_t'> bay12: CREATURE_KNOWLEDGE_SCHOLAR_FLAG_*
<flag-bit name='foraging_behavior'/>
</bitfield>
</pointer>
</stl-vector>
<stl-vector name="known_poetic_forms" type-name='int32_t' ref-target='poetic_form' since='v0.42.01' comment='bay12: poetic_form_known_id'/>
<stl-vector name="known_musical_forms" type-name='int32_t' ref-target='musical_form' since='v0.42.01' comment='bay12: musical_form_known_id'/>
<stl-vector name="known_dance_forms" type-name='int32_t' ref-target='dance_form' since='v0.42.01' comment='bay12: dance_form_known_id'/>
<pointer name="knowledge" since='v0.42.01'> bay12: scholar_knowledgest
<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'/>
<enum name='knowledge_goal_category' type-name='research_project_type'/>
<int32_t name='research_project_id'/>
<int32_t name='research_project_id2'/>
<int32_t name='research_project_id3'/>
<bitfield name='knowledge_goal'> bay12: unknown
<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'> bay12: hf_religious_datast
<stl-vector type-name='int32_t' ref-target='belief_system'/>
</pointer>
<pointer name='known_locations'> bay12: ab_review_infost
<stl-vector name='ab_review'>
<pointer> bay12: abstract_building_reviewst
<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='x' init-value='-1'/>
<int32_t name='y' init-value='-1'/>
<int32_t name='year' init-value='-1'/>
<int32_t name='season_tick' init-value='-1'/>
<static-array name='reputation' type-name='int32_t' count='8' index-enum='abstract_building_reputation_type'/>
</pointer>
</stl-vector>
</pointer>
<stl-vector name='known_agreement_id' type-name='int32_t' since='v0.47.01'/>
</struct-type>
<struct-type type-name='historical_figure_info' original-name='hf_profilest'>
<pointer name="spheres"> bay12: metaphysical_profilest
<stl-vector name="spheres">
<enum base-type='int16_t' type-name='sphere_type'/>
</stl-vector>
<stl-vector name='associated_divination_set_id' type-name='int32_t' ref-target='divination_set' since='v0.47.01'/>
</pointer>
<pointer name="skills"> bay12: skill_profilest
<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"/>
<enum base-type='int16_t' name='profession' type-name='profession'/>
<bitfield name='flags' base-type='uint32_t'> bay12: SKILL_PROFILE_FLAG_*
<flag-bit name='mood_spent'/>
<flag-bit name='ran_replace_nemesis'/>
<flag-bit name='mood_succeeded'/>
</bitfield>
<int32_t name="account_balance" comment = "Abstract tracker of this individual's wealth" since='v0.47.01'/>
<pointer name='employment_held' since='v0.47.01'> bay12: honor_profilest
<stl-vector name='employment'>
<pointer> bay12: honor_profile_entityst
<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"> bay12: pet_profilest
<stl-vector type-name='int16_t' ref-target='creature_raw'/>
</pointer>
<pointer name='personality'> bay12: personality_profilest
<compound name='personality' type-name='unit_personality'/>
<enum name='wg_mood' type-name='mood_type' since='v0.44.01'/>
</pointer>
<pointer name="masterpieces"> bay12: artistic_profilest
<stl-vector name="events" type-name='int32_t' ref-target='history_event'/>
<stl-vector name="lost_events" type-name='int32_t' ref-target='history_event' comment='refers to the creation events, not the destruction events'/>
<stl-vector name='personal_art_image_chunk' type-name='int32_t' since='v0.42.06'/>
<stl-vector name='personal_art_image_chunk_member' type-name='int16_t' since='v0.42.06'/>
<static-array name='top_related_heid' count='100' type-name='int32_t' ref-target='history_event'/>
<int32_t name='top_related_heid_num' comment='amount used in above list'/>
<int32_t name='top_related_heid_last_check_index'/>
</pointer>
<pointer type-name='state_profilest' name='whereabouts'/>
<pointer name="kills" type-name='historical_kills'/>
<pointer name="wounds"> bay12: body_profilest
<stl-vector name="events" type-name='int32_t' ref-target='history_event'/>
<stl-bit-vector name="status" comment='missing body parts'>
<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='flag' since='v0.40.19'> bay12: BODY_PROFILE_FLAG_*
<flag-bit name='gelded'/>
</bitfield>
</pointer>
<pointer name='known_info' type-name='knowledge_profilest' since='v0.34.01' comment='knowledge_profile'/>
<pointer name='curse' since='v0.34.01'> bay12: interaction_profilest
<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'/>
<bitfield name="add_caste_flag" type-name='cie_add_tag_mask1'/>
<bitfield name="remove_caste_flag" type-name='cie_add_tag_mask1'/>
<bitfield name="add_property" type-name='cie_add_tag_mask2'/>
<bitfield name="remove_property" type-name='cie_add_tag_mask2'/>
<int8_t name="use_display_name"/>
<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' comment='forced periodic transformations'/>
<stl-vector name='voluntary_body_transformation_effects' type-name='int32_t' ref-target='creature_interaction_effect'/>
<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="disturbed_heid" ref-target='history_event'/>
<pointer name='divination' since='v0.47.01'> bay12: divination_profilest
<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.'/>
<bitfield name='flags' base-type='uint32_t'> bay12: DIVINATION_PROFILE_FLAG_*
<flag-bit name='fate_sealed'/>
</bitfield>
</pointer>
<pointer name='experiments' since='v0.47.01'> bay12: experiment_profilest
<stl-vector name='experiment' type-name='night_creature_experiment_type'/>
<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'> bay12: inventory_profilest
<stl-vector name='artifacts_held' pointer-type='artifact_record' comment="held as in possession, doesn't include stored"/>
<int32_t name='army_strength_material_bonus' since='v0.44.01'/>
<int32_t name='average_equipment_quality' since='v0.47.01'/>
<static-array name='invp_skill_ip' type-name='int32_t' count='13' index-enum='inventory_profile_skill_type' since='v0.44.06' comment="only when specific_items flag set"/>
<static-array name='invp_mat_strength' type-name='int32_t' count='13' index-enum='inventory_profile_skill_type' since='v0.44.06' comment="only when specific_items flag set"/>
<bitfield name='flags' base-type='uint32_t' since='v0.44.06'> bay12: INVENTORY_PROFILE_FLAG_*
<flag-bit name='specific_items'/>
<flag-bit name='use_average_equipment_quality'/>
</bitfield>
<enum name='using_weapon_skill' type-name='job_skill' since='v0.44.06' comment='not saved'/>
<pointer name='building_usage_profile' since='v0.47.01'> bay12: hf_building_usage_profilest
<stl-vector name='usage'>
<pointer> bay12: hf_building_usagest
<int32_t name='site_id' ref-target='world_site'/>
<int32_t name='site_property_id'/>
</pointer>
</stl-vector>
<int32_t name='last_checked_year'/>
</pointer>
</pointer>
<pointer name='reputation' since='v0.34.01'> bay12: reputation_profilest
<stl-vector name="wanted" comment='entity_profile' pointer-type='entity_personal_reputation_profilest'/>
<stl-vector name='cultural_identity_profile' pointer-type='ci_personal_reputation_profilest'/>
<int32_t name="cur_identity" ref-target='identity'/>
<stl-vector name="all_identities" type-name='int32_t' ref-target='identity'/>
<bitfield name='flags' base-type='uint32_t' since='v0.47.01'> bay12: REPUTATION_PROFILE_FLAG_*
<flag-bit name='have_true_name'/>
<flag-bit name='have_villainous_identity'/>
<flag-bit name='did_villainous_id_check'/>
<flag-bit name='did_major_networks_pass'/>
</bitfield>
<pointer name='journey_profile' since='v0.44.01'> bay12: journey_profilest
<enum name='type' base-type='int32_t'> bay12: JourneyType
<enum-item name='REST_AND_RECOVER'/>
<enum-item name='RECOVER_ARTIFACT'/>
<enum-item name='PILGRIMAGE_TO_HOLY_SITE'/>
<enum-item name='GATHER_INFORMATION'/>
</enum>
<int32_t name='year' comment="Seen in visitors during fort mode, logs the time that they arrived"/>
<int32_t name='year_ticks'/>
<int32_t name='artifact_id' ref-target='artifact_record'/>
<int32_t name='dest_site' ref-target='world_site'/>
<int32_t name='dest_structure' ref-target='abstract_building'/>
<int32_t name='giver_hf' ref-target='historical_figure'/>
<int32_t name='giver_en' ref-target='historical_entity'/>
<int32_t name='return_site' ref-target='world_site'/>
<int32_t name='return_structure' ref-target='abstract_building'/>
<bitfield name='flags' base-type='uint32_t' since='v0.47.01'> bay12: JOURNEY_PROFILE_FLAG_*
<flag-bit name='preparing'/>
</bitfield>
<stl-vector name='milestone'>
<pointer> bay12: journey_milestonest
<enum name='type' base-type='int32_t'> bay12: JourneyMilestoneType
<enum-item name='STARTED_PILGRIMAGE'/>
<enum-item name='VIEWED_HOLY_RELIC'/>
<enum-item name='VISITED_HOLY_SITE'/>
</enum>
<int32_t name='main_relevant_id'/>
<int32_t name='site_id' ref-target='world_site'/>
<int32_t name='structure_id' ref-target='abstract_building'/>
<int32_t name='year'/>
<int32_t name='season_tick'/>
</pointer>
</stl-vector>
<stl-vector name='searched_sites' type-name='int32_t' since='v0.44.01' ref-target='world_site'/>
</pointer>
</pointer>
<pointer name='relationships' type-name='historical_figure_relationships'/>
</struct-type>
<struct-type type-name='core_hf_relationshipst'>
<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"/>
<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"/>
</struct-type>
<struct-type type-name='messagest'>
<int32_t name='id'/>
<enum name='type' base-type='int32_t'>
<enum-item name='quest_retrieve_artifact'/>
<enum-item name='hire_plot_actor'/>
<enum-item name='hiring_proposition'/>
<enum-item name='delegate_plot'/>
<enum-item name='delegate_plot_proposition'/>
<enum-item name='order_to_perform_action'/>
</enum>
<bitfield name='flags' base-type='uint32_t'> bay12: MESSAGE_FLAG_*
<flag-bit name='dead'/>
</bitfield>
<int32_t name='post_year'/>
<int32_t name='post_season_tick'/>
<compound name='plot_data' is-union='true'>
<compound name='quest_retrieve_artifact'> bay12: message_quest_retrieve_artifactst
<int32_t name='giver_civ' ref-target='historical_entity'/>
<int32_t name='giver_hf' ref-target='historical_figure'/>
<int32_t name='artifact_id' ref-target='artifact_record'/>
<int32_t name='return_site' ref-target='world_site'/>
<int32_t name='return_bld' ref-target='abstract_building'/>
</compound>
<compound name='hire_plot_actor'> bay12: message_hire_plot_actorst
<int32_t name='plot_origin_hf' ref-target='historical_figure'/>
<int32_t name='plot_id'/>
<int32_t name='hire_hf' ref-target='historical_figure'/>
<int32_t name='rate'/>
</compound>
<compound name='hiring_proposition'> bay12: message_hiring_propositionst
<int32_t name='plot_origin_hf' ref-target='historical_figure'/>
<int32_t name='plot_id'/>
<int32_t name='rate'/>
</compound>
<compound name='delegate_plot'> bay12: message_delegate_plotst
<int32_t name='plot_origin_hf' ref-target='historical_figure'/>
<int32_t name='plot_id'/>
<int32_t name='delegate_hf' ref-target='historical_figure'/>
<int32_t name='rate'/>
</compound>
<compound name='delegate_plot_proposition'> bay12: message_delegate_plot_propositionst
<int32_t name='plot_origin_hf' ref-target='historical_figure'/>
<int32_t name='plot_id'/>
<int32_t name='rate'/>
</compound>
<compound name='order_to_perform_action'> bay12: message_order_to_perform_actionst
<int32_t name='commander_hf' ref-target='historical_figure'/>
<int32_t name='ordered_hf' ref-target='historical_figure'/>
<enum name='action' base-type='int32_t'>
<enum-item name='infiltrate_society'/>
</enum>
<int32_t name='action_id'/>
<uint32_t name='action_transfer_flag'/>
</compound>
</compound>
<int32_t name='last_holder_hf' ref-target='historical_figure'/>
</struct-type>
<struct-type type-name='relationship_profile_hf_visualst'>
<int32_t name='histfig_id' ref-target='historical_figure'/>
<bitfield name='flags'> bay12: RELATIONSHIP_PROFILE_HF_FLAG_*
<flag-bit name='basic_name_known'/>
</bitfield>
<stl-vector name='known_associated_identity_id' type-name='int32_t' ref-target='identity' comment="Involves adventurer knowing name?"/>
<stl-vector name="attitude" type-name='reputation_type' comment="Probably ordered"/>
<stl-vector name="counter" type-name='int32_t' comment="One element for each 'attitude' element. Guess 0 - 100"/>
<enum name='rank' type-name='vague_relationship_type' since='v0.47.01'/>
<compound name='core' type-name='core_hf_relationshipst'/>
<int32_t name='meet_count' since='v0.44.10'/>
<int32_t name='last_meet_year' comment="probably latest contact. Seen -1"/>
<int32_t name='last_meet_season_tick'/>
<int32_t name='abs_x' since='v0.47.01'/>
<int32_t name='abs_y' since='v0.47.01'/>
<int32_t name='abs_z' since='v0.47.01'/>
<int32_t name='transient_attitude' since='v0.47.01'/>
<int32_t name='transient_patience' since='v0.47.01'/>
<int32_t name='transient_confidence' since='v0.47.01'/>
<int32_t name='transient_agitation' since='v0.47.01'/>
<int32_t name='transient_failed_persuade_attempts' since='v0.47.01'/>
<int32_t name='transient_failed_intimidate_attempts' since='v0.47.01'/>
<int32_t name='first_year' comment="transient_last_reset" since='v0.47.01'/>
<int32_t name='first_year_tick' since='v0.47.01'/>
</struct-type>
<struct-type type-name='relationship_profile_hf_historicalst'>
<int32_t name='histfig_id' ref-target='historical_figure'/>
<stl-vector name='known_associated_identity_id' type-name='int32_t' ref-target='identity'/>
<stl-vector name="attitude" type-name='reputation_type'/>
<stl-vector name="counter" type-name='int32_t' comment="One element for each 'attitude' element"/>
<compound name='core' type-name='core_hf_relationshipst'/>
</struct-type>
<struct-type type-name='historical_figure_relationships' original-name='relationship_profilest'>
<stl-vector name='hf_visual' pointer-type='relationship_profile_hf_visualst'/>
<!--
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-type='relationship_profile_hf_historicalst'/>
<stl-vector name='hf_identity' since='v0.44.01'>
<pointer> bay12: relationship_profile_hf_identityst
<int32_t name='identity_id' ref-target='identity'/>
<stl-vector name="attitude" type-name='reputation_type'/>
<stl-vector name="counter" type-name='int32_t' comment="One element for each 'attitude' element"/>
<compound name='core' type-name='core_hf_relationshipst'/>
</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> bay12: relationship_profile_artifactst
<int32_t name='artifact_id' ref-target='artifact_record'/>
<enum name='type' type-name='artifact_claim_type'/>
<int32_t name='year'/>
<int32_t name='year_tick'/>
<int32_t name='renounce_event' ref-target='history_event'/>
</pointer>
</stl-vector>
<uint32_t name='flag'/> bay12: unknown flags
<pointer name='intrigues'> bay12: intrigue_perspectivest
<stl-vector name='potential_corrupt_reason' type-name='history_event_reason'/>
<stl-vector name='potential_corrupt_target' type-name='int32_t'/>
<stl-vector name='potential_corrupt_circumstance'>
<enum type-name='unit_thought_type' base-type='int32_t'/>
</stl-vector>
<stl-vector name='potential_corrupt_circumstance_target' type-name='int32_t' init-value='-1'/>
<stl-vector name='plots'>
<pointer> bay12: intrigue_plotst
<int32_t name='id' comment="starts as index in parent vector"/>
<enum name='plot_type' base-type='int32_t'> bay12: IntriguePlotType
<enum-item name='None' value='-1'/>
<enum-item name='Grow_Funding_Network'/>
<enum-item name='Grow_Asset_Network'/>
<enum-item name='Acquire_Artifact'/> artifact id
<enum-item name='Grow_Corruption_Network'/>
<enum-item name='Attain_Rank'/>
<enum-item name='Assassinate_Actor'/> actor id
<enum-item name='Corruptly_Punish_Actor'/> actor id
<enum-item name='Frame_Actor'/> actor id
<enum-item name='Kidnap_Actor'/> actor id
<enum-item name='Sabotage_Actor'/> actor id
<enum-item name='Direct_War_To_Actor'/> actor id
<enum-item name='Corrupt_Actors_Government'/> actor id
<enum-item name='Counterintelligence'/> civ id
<enum-item name='Become_Immortal'/>
<enum-item name='Undead_World_Conquest'/>
<enum-item name='Infiltrate_Society'/> civ id
</enum>
<int32_t name='parameter' init-value='-1' comment="2:artifact_id, 5-11:actor_id, 12/15:entity_id"/>
<bitfield name='flags' base-type='uint32_t'> bay12: INTRIGUE_PLOT_FLAG_*
<flag-bit name='on_hold'/>
</bitfield>
<stl-vector name='plot_agreements' pointer-type='plot_agreement'/>
<compound name='plot_data' is-union='true'>
<pointer name='Sabotage_Actor'> bay12: intrigue_plot_sabotage_actorst
<int32_t name='target_civ' ref-target='historical_entity'/>
<int32_t name='target_site' ref-target='world_site'/>
</pointer>
<pointer name='Undead_World_Conquest'> bay12: intrigue_plot_undead_animator_world_conquestst
<stl-vector name='searched_battlefield_id' type-name='int32_t'/>
</pointer>
<pointer name='Infiltrate_Society'> bay12: intrigue_plot_infiltrate_societyst
<bitfield name='flags' base-type='uint32_t'> bay12: INTRIGUE_PLOT_INFILTRATE_SOCIETY_FLAG_*
<flag-bit name='steal'/>
<flag-bit name='initiate_sabotage_among_agents'/>
<flag-bit name='instill_terror'/>
<flag-bit name='prepare_coup'/>
</bitfield>
<int32_t name='last_entered_year' init-value='-1'/>
<int32_t name='last_entered_season_count' init-value='0'/>
</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='task_id' init-value='-1' comment="0-8 seen"/>
<int32_t name='plotter_nemesis_id' ref-target='nemesis_record'/>
<int32_t name='message_id' 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> bay12: intrigue_actorst
<int32_t name='id' comment="index into the parent vector (at least initially)"/>
<bitfield name='flags' base-type='uint32_t'> bay12: INTRIGUE_ACTOR_FLAG_*
<flag-bit name='using_handler_for_contact'/>
<flag-bit name='i_promised_ia_immortality'/>
<flag-bit name='ia_promised_me_immortality'/>
</bitfield>
<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='identity_id' ref-target='identity'/>
<int32_t name='entity' 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='strategy_enid' ref-target='historical_entity' comment="site government seen. Target? Member of/possible threat?"/>
<int32_t name='strategy_eppid' init-value='-1' comment='entity position assignment'/>
<stl-vector name='active_plot_id' type-name='int32_t'/>
</pointer>
</stl-vector>
<int32_t name='next_intrigue_id'/>
<stl-vector name='coup_check_enid' type-name='int32_t' comment="4 bytes allocated observed, which cant' host a pointer"/>
<stl-vector name='task'>
<pointer> bay12: taskst
<int32_t name='id'/>
<enum name='type' base-type='int32_t'>
<enum-item name='hire_plot_actor'/>
<enum-item name='satisfy_agreement'/>
<enum-item name='send_message'/>
<enum-item name='delegate_plot'/>
</enum>
<bitfield name='flags' base-type='uint32_t'> bay12: unknown flags
<flag-bit name='unk0'/>
</bitfield>
<compound name='data' is-union='true'>
<pointer name='hire_plot_actor'> bay12: task_hire_plot_actorst
<int32_t name='plot_origin_hfid' ref-target='historical_figure'/>
<int32_t name='plot_id'/>
<int32_t name='hire_hfid' ref-target='historical_figure'/>
<int32_t name='rate'/>
</pointer>
<pointer name='satisfy_agreement'> bay12: task_satisfy_agreementst
<int32_t name='agreement_id'/>
<int32_t name='plot_origin_hfid' ref-target='historical_figure'/>
<int32_t name='plot_id'/>
</pointer>
<pointer name='send_message'> bay12: task_send_messagest
<compound name='msg' type-name='messagest'/>
<int32_t name='recipient_hfid' ref-target='historical_figure'/>
<int32_t name='plot_origin_hfid' ref-target='historical_figure'/>
<int32_t name='plot_id'/>
</pointer>
<pointer name='delegate_plot'> bay12: task_delegate_plotst
<int32_t name='plot_origin_hfid' ref-target='historical_figure'/>
<int32_t name='plot_id'/>
<int32_t name='delegate_hfid' ref-target='historical_figure'/>
<int32_t name='rate'/>
</pointer>
</compound>
</pointer>
</stl-vector>
<int32_t name='next_task_id'/>
<stl-vector name='message' pointer-type='messagest'/>
<int32_t name='next_message_id'/>
<int32_t name='next_message_year' init-value='-1'/>
<int32_t name='next_message_season_count' init-value='-1'/>
</pointer>
</struct-type>
<enum-type type-name='histfig_flags'> bay12: HistoryFigureFlagType
<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='int32_t'> bay12: FamilyRelationshipType
<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'> bay12: WGRelationshipType
<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="bay12: BREAKUP; broke up"/>
<enum-item name='scholar_buddy' comment='bay12: SCHOLARLY_INTEREST'/>
<enum-item name='artistic_buddy' comment='bay12: ARTISTIC_INTEREST'/>
<enum-item name='athlete_buddy' comment='bay12: ATHLETES'/>
<enum-item name='athletic_rival' comment='bay12: ATHLETES_RIVALS'/>
<enum-item name='business_rival' comment='bay12: BUSINESS_RIVALS'/>
<enum-item name='religious_persecution_grudge'/>
<enum-item name='grudge'/>
<enum-item name='persecution_grudge'/>
<enum-item name='supernatural_grudge' comment='bay12: SUPERNATURAL_VENGEANCE'/>
<enum-item name='lieutenant' comment='bay12: INTRIGUE_LIEUTENANT'/>
<enum-item name='worshipped_deity' comment='bay12: 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' comment='bay12: FORMER_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'
original-name='history_figurest'>
<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='art_count'/>
<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' comment='bay12: hf_profilest profile'/>
<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)"> bay12: relationship_quick_infost
<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="worldgen_site" type-name="world_site"/>
<pointer name="worldgen_region" type-name="world_region"/>
<pointer name="worldgen_layer" type-name="world_underground_region"/>
<pointer name="worldgen_genetics" type-name='unit_genes'/>
<pointer name="worldgen_relationships"> bay12: wg_relationship_quick_infost
<static-array name='hfid' pointer-type='historical_figure' 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 name='current_spouse' type-name='historical_figure'/>
<static-array name='current_lover' pointer-type='historical_figure' count='2'/>
</pointer>
<int32_t name="temp_var"/>
<uint32_t name="temp_flag"/>
<int32_t name='gen_material_skill_ip_sum' init-value='-1' since='v0.40.17-19'/>
<int32_t name='defensive_skill_ip_sum' init-value='-1'/>
-- protected --
<size_t name='pool_id'/>
</struct-type>
<enum-type type-name='identity_type' base-type='int32_t'> bay12: IdentityPurposeType
<enum-attr name='id_tag' comment='for identity.id'/>
<enum-item name='None' value='-1'>
<item-attr name='id_tag' value='histfig_id'/>
</enum-item>
<enum-item name='HidingCurse' comment='HIDDEN_PREDATOR'>
<item-attr name='id_tag' value='histfig_id'/>
</enum-item>
<enum-item name='Impersonating' comment='GOD_PRETENDER'>
<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">