Two complementary systems apply bonuses and penalties to units and nations. They combine to determine final stat values.
Global Modifiers (modifier data / modifier manager)
Nation-wide bonuses from technology, culture, terrain, and town upgrades. Applied to all units and towns of that nation. Every modifier is flat (a whole number added to the stat) with a target stat and a value — there is no percent type. Managed by Modifier manager autoload and tracked per-nation via Modifier receiver.
Unit Modifiers (modifier data / modifier receiver)
Unit-specific bonuses from veterancy rank and terrain affinity traits. Applied via Modifier receiver on each unit. Terrain affinity bonuses are added/removed each turn as the unit's terrain changes.
How They Combine
When calculating a final stat value for a unit:
- Start with the base value (from unit type data)
- Add every applicable flat modifier (unit-level + nation-level) — each adds or subtracts a fixed whole number
The result is always a whole number; the game never multiplies a stat by a percentage.
Example: A unit with 10 base attack, +2 flat from veterancy rank, and +3 flat from technology:
- Step 1: Base = 10
- Step 2: Add veterancy = 10 + 2 = 12
- Step 3: Add technology = 12 + 3 = 15
Sources of Modifiers
- Technology research: unlocks global flat bonuses
- Culture traits: provide global flat bonuses
- Town buildings: provide local or global bonuses
- Terrain adaptation: bonuses in specific terrain types
- Veterancy traditions: unit-specific flat bonuses from combat experience
