Skip to main content

recruitment_pool_agents

Function recruitment_pool_agents 

Source
pub fn recruitment_pool_agents(
    tables: &StartposTables,
    faction: &FactionEntry,
) -> Result<Vec<String>>
Expand description

Returns the agent types with a recruitment pool in a faction.

They’re the agent types of the faction’s culture in agent_culture_details whose agents.faction_total_cap is above 0 (which leaves out colonels and ministers).

§Arguments

  • tables - Tables with agent_culture_details and agents.
  • faction - The faction.

§Returns

The agent types, in agent_culture_details order, without repeats.

§Errors

Returns an error if a table or column is missing.