Skip to main content

post_holders

Function post_holders 

Source
pub fn post_holders(
    tables: &StartposTables,
    index: &CampaignIndex,
    faction: &FactionEntry,
    position: &str,
) -> Result<Vec<String>>
Expand description

Returns the holders of a faction’s posts of a position, by start_pos_characters id, in table order.

The leader holds the leader post (see faction_leader). Other posts go to the faction’s living characters whose ministerial_position is theirs; the heir post, if the tables give it nobody, to the leader’s eldest living son. Verified on Thrones’ campaign: the 30 captains, chamberlains and justicars and the 53 leaders the tables give, and 23 of 34 heirs the game picked (it breaks ties between sons with its RNG).

§Errors

Returns an error if a table or column is missing.