From d59afeeb6b33828bc78699d70dcdd3e7d46b6ce8 Mon Sep 17 00:00:00 2001 From: wvpm <24685035+wvpm@users.noreply.github.com> Date: Wed, 4 Sep 2024 11:36:00 +0200 Subject: Regiment instead of unit --- docs/simulation/calculations.yaml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'docs/simulation') diff --git a/docs/simulation/calculations.yaml b/docs/simulation/calculations.yaml index 6a74a7d..661812e 100644 --- a/docs/simulation/calculations.yaml +++ b/docs/simulation/calculations.yaml @@ -68,7 +68,7 @@ Economy: absolute minimum: 50 (hardcoded value) relative minimum: floor(defines.economy.EMPLOYMENT_HIRE_LOWEST * employees count) Military: - Maximum units per soldier POP: + Maximum regiments per soldier POP: if POP size < defines.military.POP_MIN_SIZE_FOR_REGIMENT: 0 else: formula: ceil(POP size / (POP_SIZE_PER_REGIMENT * location factor)) @@ -79,20 +79,20 @@ Military: else if location is core: 1 else: defines.military.POP_MIN_SIZE_FOR_REGIMENT_NONCORE_MULTIPLIER Reinforcements per army: - formula: 5 * round(supply factor * sum of unit reinforcements * REINFORCE_SPEED * local reinforce rate * (1 + reinforce_rate) * (1 + reinforce_speed) / 5) + formula: 5 * round(supply factor * sum of regiment reinforcements * REINFORCE_SPEED * local reinforce rate * (1 + reinforce_rate) * (1 + reinforce_speed) / 5) supply factor: - if unit received all its supplies: 1 + if army received all its supplies: 1 else: formula: ((x^(n+1) - 1)/(x - 1) - 1) / n x: received supply - n: number of units in the army - unit reinforcements: 1000 * max_strength * unit reinforce rate + n: number of regiments in the army + regiment reinforcements: 1000 * max_strength * regiment reinforce rate max_strength: as defined in /units/.txt 1000: (max_)strength is defined in thousands of soldiers. Reinforcements per army uses the number of soldiers. - unit reinforce rate: - if unit is mobilised: 0.5 - else if pop is too small for a single unit: 0.5 - else if pop supports too many units: Maximum units per soldier POP / number of supported units + regiment reinforce rate: + if regiment is mobilised: 0.5 + else if pop is too small for a single regiment: 0.5 + else if pop supports too many regiments: Maximum regiments per soldier POP / number of supported regiments else: 1 REINFORCE_SPEED: defines.military.REINFORCE_SPEED local reinforce rate: -- cgit v1.2.3-56-ga3b1