Skip to main content

Module unit_bonuses

Module unit_bonuses 

Source
Expand description

Equipment stat bonuses of garrison units from their settlements’ buildings (UNIT/UNIT_STATISTICS_BONUSES/STATS_BLOCK).

The game computes a unit’s bonus for each equipment stat (FUN_10b90310) as the largest of its sources: the effects with the stat’s basic bonus value, the ones for the unit’s category and the ones for its class (FUN_10b86000). The stats are, by id, armour, shield, weapon, ammunition and horses. A garrison takes the effects of its faction’s buildings in the province (province_to_province_own, region_to_region_own_provincewide) and in its own region (region_to_region_own). Verified on Thrones: the 166 bonuses of its 83 garrison units with any (forges and military ports: bronze armour and weapons +5).

Structs§

StatBonusRules
What the stat bonuses of units are worked out from.