From cad28078b619825ae6f6c6deb0756157ff9b2064 Mon Sep 17 00:00:00 2001 From: wvpm <24685035+wvpm@users.noreply.github.com> Date: Wed, 4 Sep 2024 19:55:14 +0200 Subject: Replace promille with * 1000 --- docs/simulation/calculations.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/simulation/calculations.yaml b/docs/simulation/calculations.yaml index 931c254..4fab6ed 100644 --- a/docs/simulation/calculations.yaml +++ b/docs/simulation/calculations.yaml @@ -79,7 +79,7 @@ Military: else if location is core: 1 else: defines.military.POP_MIN_SIZE_FOR_REGIMENT_NONCORE_MULTIPLIER Reinforcing: - Regiment reinforcements promille: + Regiment reinforcements fraction * 1000: formula: if regiment is full strength: 0 else: min(trunc(regiment reinforce rate * supply factor * reinforcements multiplier * 1000), 1000) @@ -113,14 +113,14 @@ Military: trunc(... * 1000): Truncated to 1/1000th. min(..., 1000): Capped at max strength. Regiment reinforcements: - formula: trunc(unit type strength * Regiment reinforcements promille) + formula: trunc(unit type strength * Regiment reinforcements fraction * 1000) unit type strength: as defined in /units/.txt trunc(unit type strength * ...): Truncated to integers in the case unit type strength isn't an integer already. Reinforcements per army (tooltip): sum of Regiment reinforcements Regiment experience after reinforcing: - formula: xp before reinforcing / (1 + trunc(Regiment reinforcements promille / 3) / 1000) + formula: xp before reinforcing / (1 + trunc(Regiment reinforcements fraction * 1000 / 3) / 1000) trunc(... / 3): Hardcoded. - / 1000: to counter promille. + / 1000: to counter * 1000. Regiment experience gain per day of combat: formula: d6 * defines.military.EXP_GAIN_DIV * (1 + sum of experience gain modifiers) + unexplained d6: random integer (inclusive) 1-6 -- cgit v1.2.3-56-ga3b1