Skip to content

Commit

Permalink
Merge pull request #753 from Bumber64/patch-1
Browse files Browse the repository at this point in the history
Comments for plant flags
  • Loading branch information
myk002 authored May 16, 2024
2 parents 00d4a81 + ac91b30 commit b761de7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ Template for new versions:
# Future

## Structures
- ``plant_flags``: rename ``is_burning``, ``is_drowning``, ``is_dead`` to Bay12 names ``unused_01``, ``season_dead``, ``dead``

# 50.13-r2

Expand Down
12 changes: 6 additions & 6 deletions df.plants.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<data-definition>
<bitfield-type type-name='plant_flags' base-type='uint16_t'>
<flag-bit name='watery'/>
<bitfield-type type-name='plant_flags' base-type='uint16_t' comment='actually an enum relating to plant vectors'>
<flag-bit name='watery' comment='Within 2 tiles of pool/river/brook feature'/>
<flag-bit name='is_shrub' comment='If it is not a shrub, then it is a tree'/>
</bitfield-type>

Expand All @@ -11,17 +11,17 @@

<int32_t name='grow_counter'/>
<bitfield name='damage_flags'>
<flag-bit name='is_burning'/>
<flag-bit name='is_drowning'/>
<flag-bit name='is_dead'/>
<flag-bit name='unused_01'/>
<flag-bit name='season_dead'/>
<flag-bit name='dead'/>
</bitfield>
<int32_t name='hitpoints'/>
<int16_t name='update_order'/>

<int32_t name='site_id' ref-target='world_site'/>
<int32_t name='srb_id' ref-target='site_realization_building' aux-value='$$.site_id'/>
<stl-vector name='contaminants' pointer-type='spatter_common'/>
<pointer name='tree_info' type-name='plant_tree_info'/>
<pointer name='tree_info' type-name='plant_tree_info' comment='Sapling if NULL'/>
</struct-type>

<enum-type type-name='plant_tree_tile_branches_dir' base-type='uint16_t'>
Expand Down

0 comments on commit b761de7

Please sign in to comment.