Skip to main content

Module government

Module government 

Source
Expand description

Government of each faction: its posts (FACTION/GOVERNMENT/CHARACTER_POSTS), its political parties (FACTION/CAMPAIGN_POLITICS) and its leader.

Verified on Attila’s main campaign: posts match for 118 of 118 factions, party sets for 118 of 118 and party powers for 100 of 100 parties, and the leader for the 60 factions with characters. The game stores the post groups and some party lists in hash order.

Structs§

PoliticalParty
A political party of a faction.
PostGroup
A group of identical posts of a faction’s government.

Constants§

FACTION_LEADER_POSITION
Ministerial position held by faction leaders.
HEIR_POSITION
Ministerial position of the heir, which the game gives the leader’s eldest son if the tables give it nobody.

Functions§

faction_leader
Returns the leader of a faction: its first living character with the faction_leader position, or its first living character if no row has it. The startpos lists the leader first in the faction’s characters.
government_posts
Returns the post groups of a faction’s government.
political_parties
Returns the political parties of a faction with their starting power.
post_holders
Returns the holders of a faction’s posts of a position, by start_pos_characters id, in table order.