Skip to main content

province_mercenary_pool

Function province_mercenary_pool 

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

Returns the mercenary pool of a province.

§Arguments

  • tables - Tables with province_to_mercenary_set_junctions, mercenary_pool_to_groups_junctions and mercenary_unit_groups.
  • province - Province key.

§Returns

The units of every set of the province, in table order. Empty for provinces without sets.

§Errors

Returns an error if a table or column is missing.