Skip to main content

faction_mercenary_pool

Function faction_mercenary_pool 

Source
pub fn faction_mercenary_pool(
    tables: &StartposTables,
    faction: &str,
) -> Result<Vec<MercenaryUnit>>
Expand description

Returns the mercenary pool of a faction.

§Arguments

  • tables - Tables with faction_to_mercenary_set_junctions, mercenary_pool_to_groups_junctions and mercenary_unit_groups.
  • faction - Faction key.

§Returns

The units of every set of the faction, in table order. Empty for factions without sets.

§Errors

Returns an error if a table or column is missing.