Skip to main content

political_party

Function political_party 

Source
pub fn political_party<'a>(
    character: &CharacterEntry,
    is_male: bool,
    widowed: bool,
    party: &'a str,
    parties: &'a [PoliticalParty],
) -> &'a str
Expand description

Returns the political party of a character: its table party, except for the dead and the widowed, which the game changes. Dead women and widows have no party. Dead men without a party join their faction’s ruling party, and widowers in it move to the faction’s other party. Seen on Attila’s main campaign, with one widow and one widower.

§Arguments

  • character - The character.
  • is_male - The character is a man.
  • widowed - The character is alive and married to a dead character.
  • party - The character’s start_pos_characters.political_party.
  • parties - The political parties of the character’s faction.