robertjanetzko / LegendsBrowser

Legends Browser is an multi-platform, open source, java-based legends viewer for dwarf fortress 0.42.
MIT License
63 stars 19 forks source link

Money related stuff for .47 #37

Closed therahedwig closed 4 years ago

therahedwig commented 4 years ago

[2020-01-31 20:51:10] WARNING: site - unknown element: site_properties = 22

New in .47, these are the houses that histfigs can buy and own and store all their artifacts in.

Sample on site:

<site_properties>
                        <site_property>
                                <id>0</id>
                                <structure_id>5</structure_id>
                        </site_property>
                        <site_property>
                                <id>1</id>
                                <type>house</type>
                                <owner_hfid>497</owner_hfid>
                        </site_property>
                        <site_property>
                                <id>2</id>
                                <type>house</type>
                        </site_property>
                        <site_property>
                                <id>3</id>
                                <type>house</type>
                        </site_property>
                </site_properties>

(Structure ID here refers to a counting house, I guess merchenary companies need to buy these plots)

Sample on histfig:

<site_property>
                        <site_id>72</site_id>
                        <property_id>0</property_id>
                </site_property>

Gambling

<historical_event>
                <id>9315</id>
                <year>21</year>
                <seconds72>16800</seconds72>
                <type>gamble</type>
                <gambler_hfid>655</gambler_hfid>
                <site_id>54</site_id>
                <structure_id>2</structure_id>
                <old_account>0</old_account>
                <new_account>-5000</new_account>
        </historical_event>

Embezzlement:

<historical_event>
                <id>9543</id>
                <year>21</year>
                <seconds72>310800</seconds72>
                <type>hf convicted</type>
                <convicted_hfid>1399</convicted_hfid>
                <convicter_enid>445</convicter_enid>
                <crime>embezzlement</crime>
                <prison_months>72</prison_months>
        </historical_event>

Merchant companies doing trade

<historical_event>
                <id>35608</id>
                <year>49</year>
                <seconds72>210000</seconds72>
                <type>trade</type>
                <trader_hfid>5100</trader_hfid>
                <trader_entity_id>-1</trader_entity_id>
                <source_site_id>236</source_site_id>
                <dest_site_id>313</dest_site_id>
                <production_zone_id>5</production_zone_id>
                <allotment>13</allotment>
                <allotment_index>0</allotment_index>
                <account_shift>4370</account_shift>
        </historical_event>

Ransom

<historical_event>
                <id>349282</id>
                <year>143</year>
                <seconds72>134400</seconds72>
                <ransomed_hfid>27798</ransomed_hfid>
                <ransomer_hfid>27798</ransomer_hfid>
                <payer_hfid>22999</payer_hfid>
                <moved_to_site_id>251</moved_to_site_id>
        </historical_event>

I suspect these are bugged, ransomer and ransommed are the same, always...

Getting a structure:

<historical_event> 
                <id>501209</id> 
                <year>181</year>
                <seconds72>0</seconds72>
                <site_id>572</site_id>
                <building_profile_id>6</building_profile_id>
                <acquirer_hfid>17781</acquirer_hfid>
                <purchased_unowned/>  
                <inherited/>
                <rebuilt_ruined/>
        </historical_event>

Improving a structure:

<historical_event>
                <id>76574</id>
                <year>73</year>
                <seconds72>109200</seconds72>
                <site_id>332</site_id>
                <structure_id>2</structure_id>
                <modifier_hfid>10355</modifier_hfid>
                <modification>dungeon</modification>
        </historical_event>
<historical_event>
                <id>152018</id>
                <year>97</year>
                <seconds72>243600</seconds72>
                <site_id>332</site_id>
                <structure_id>2</structure_id>
                <modifier_hfid>10355</modifier_hfid>
                <modification>improved fortifications</modification>
        </historical_event>

Getting better equipment:

<historical_event>
                <id>502656</id>
                <year>181</year>
                <seconds72>243600</seconds72>
                <type>hf equipment purchase</type>
                <quality>3</quality>
                <group_hfid>19208</group_hfid>
                <site_id>-1</site_id>
                <structure_id>-1</structure_id>
                <subregion_id>-1</subregion_id>
                <feature_layer_id>-1</feature_layer_id>
        </historical_event>

Unsure what this is?

<historical_event>
                <id>29091</id>
                <year>44</year>
                <seconds72>226800</seconds72>
                <entity_id>546</entity_id>
                <reason>lack of funds</reason>
        </historical_event>

Enslavement:

<historical_event>
                <id>721427</id>
                <year>239</year>
                <seconds72>92400</seconds72>
                <enslaved_hfid>17680</enslaved_hfid>
                <seller_hfid>18417</seller_hfid>
                <payer_entity_id>2996</payer_entity_id>
                <moved_to_site_id>638</moved_to_site_id>
        </historical_event>
robertjanetzko commented 4 years ago

all of these should be done