Skip to content

Commit

Permalink
Identify the adventurer's commander's ID
Browse files Browse the repository at this point in the history
In the "Create Your Character" screen of adventurer creation, you can
choose "Locally Important" or "Peasant". "Locally Important" means the
chosen site has a captain of the guard position (or equivalent).
`commander_id` is the index of the position assignment of the captain of
the guard for the site's group. If position is vacant, the "Locally
Important" option is available, but the adventurer is still a peasant
and `commander_id` is -1.
  • Loading branch information
dscorbett committed May 20, 2017
1 parent 534e32b commit 433d21c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions df.viewscreen.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1744,10 +1744,7 @@
<enum-item name='Demigod'/>
</enum>

<enum name='background_type' base-type='int32_t' since='v0.40.01'>
<enum-item name='Peasant' value='-1'/>
<enum-item name='LocallyImportant'/>
</enum>
<int32_t name='commander_id' init-value='-1' since='v0.40.01' refers-to='$(find-entity $(find-instance $world_site $$._parent.site_id).cur_owner_id).positions.assignments[$]' comment='-1 is peasant'/>
<int32_t name='site_id' ref-target='world_site' since='v0.40.01'/>
<int32_t name='deity_id' ref-target='historical_figure' since='v0.40.01'/>
<int32_t name='belief_strength' since='v0.40.01'/>
Expand Down

0 comments on commit 433d21c

Please sign in to comment.