Skip to content
Browse files

Results of some research into migrant code.

  • Loading branch information...
1 parent 391331e commit e05479e2ef297080e1cb1273851aca0aa305928d @angavrilov angavrilov committed Aug 28, 2012
Showing with 24 additions and 24 deletions.
  1. +8 −8 df.entities.xml
  2. +15 −13 df.ui.xml
  3. +1 −3 df.world-data.xml
View
16 df.entities.xml
@@ -9,17 +9,17 @@
<int32_t name='plant'/>
<int32_t name='drink'/>
</compound>
- <static-array type-name='int16_t' count='152' index-enum='profession'/>
+ <static-array name='unit_counts' type-name='int16_t' count='152' index-enum='profession'/>
+ <int16_t name='population'/>
<int16_t/>
<int16_t/>
<int16_t/>
- <int16_t/>
- <int16_t/> a pair of these should be trained animals/other animals
- <int16_t/>
+ <int16_t name='trained_animals'/>
+ <int16_t name='other_animals'/>
<int16_t/>
<int32_t/>
- <static-array type-name='int32_t' count='112' index-enum='item_type'/>
- <stl-vector name='unk530' type-name='int32_t' index-refers-to='$global.world.raws.itemdefs.weapons[$]'/>
+ <static-array name='item_counts' type-name='int32_t' count='112' index-enum='item_type'/>
+ <stl-vector name='created_weapons' type-name='int32_t' index-refers-to='$global.world.raws.itemdefs.weapons[$]'/>
<compound name='wealth'>
<int32_t name='total'/>
<int32_t name='weapons'/>
@@ -58,7 +58,7 @@
<int16_t/>
<int16_t/>
<int16_t/>
- <int32_t/>
+ <int32_t name='unk_22d4'/>
<stl-vector name='unk22d8' type-name='int32_t'/>
<int32_t/>
</struct-type>
@@ -417,7 +417,7 @@
<stl-vector name='unk45' type-name='pointer'/>
- <pointer name='unk46'/>
+ <pointer name='tasks' type-name='entity_activity_statistics'/>
<int16_t name='unk47'/>
<int32_t name='unk48'/>
View
28 df.ui.xml
@@ -194,7 +194,7 @@
index-refers-to='(material-by-id 0 $)'/>
<int32_t name='trees_removed'/>
<int32_t/>
- <int32_t/>
+ <int32_t name='no_migrant_timer' comment='?; +1 per 10'/>
<compound name='tasks' type-name='entity_activity_statistics'/>
<stl-vector name='unk22e8'/>
@@ -389,23 +389,25 @@
<stl-vector name='unk5a98' type-name='int16_t'/>
<stl-vector name='unk5aa4' type-name='int16_t'/>
- <static-array name='unk5ab0' count='5'>
- <stl-vector type-name='int16_t'/>
- </static-array>
+ <compound name='map_edge'>
+ <static-array name='layer_x' count='5'>
+ <stl-vector type-name='int16_t'/>
+ </static-array>
- <stl-vector name='unk5aec' type-name='int16_t'/>
+ <stl-vector name='surface_x' type-name='int16_t'/>
- <static-array name='unk5af8' count='5'>
- <stl-vector type-name='int16_t'/>
- </static-array>
+ <static-array name='layer_y' count='5'>
+ <stl-vector type-name='int16_t'/>
+ </static-array>
- <stl-vector name='unk5b34' type-name='int16_t'/>
+ <stl-vector name='surface_y' type-name='int16_t'/>
- <static-array name='unk5b40' count='5'>
- <stl-vector type-name='int16_t'/>
- </static-array>
+ <static-array name='layer_z' count='5'>
+ <stl-vector type-name='int16_t'/>
+ </static-array>
- <stl-vector name='unk5b7c' type-name='int16_t'/>
+ <stl-vector name='surface_z' type-name='int16_t'/>
+ </compound>
<static-array name='unk5b88' count='7'>
<stl-vector/>
View
4 df.world-data.xml
@@ -428,13 +428,11 @@
<int16_t name='max_z'/>
<static-array count='12' type-name='int16_t' name='unk_c'/>
<int32_t name="unk_28"/>
- <int16_t name="unk_2c"/>
+ <uint32_t name="unk_2c"/>
<df-flagarray name="unk_30"/>
<static-array count='15' type-name='int16_t' name='unk_38'/>
<int16_t name="top_layer_idx"
comment='topmost cave layer the feature reaches'/>
- <int16_t name="unk_58"/>
- <int16_t name="unk_5a"/>
</struct-type>
<struct-type type-name='world_region_details'>

0 comments on commit e05479e

Please sign in to comment.
Something went wrong with that request. Please try again.