Skip to main content

Module provinces

Module provinces 

Source
Expand description

Per-faction managers of provinces (PROVINCE/FACTION_PROVINCE_MANAGER_ARRAY) and sea regions (WORLD/SEA_REGION_MANAGER).

Verified on Attila’s main campaign: 94 of 94 province managers match in their regions and 93 in their main region, and 25 of 25 sea regions match. The game lists managers and regions in orders derived from its hash-ordered region array; these functions use table and map order instead, which changes the main region of provinces without capital or major settlement (one rebel province in Attila).

Structs§

ProvinceManager
A faction’s holdings in a province.
SeaRegion
A sea region and the factions with ports on it.

Functions§

province_managers
Returns the province managers: one per faction (or the rebels) owning regions in a province.
sea_regions
Returns the sea regions with ports: every sea a port zone cell lies in, with the port regions of each faction.