diff options
author | wvpm <24685035+wvpm@users.noreply.github.com> | 2024-09-04 19:55:14 +0200 |
---|---|---|
committer | wvpm <24685035+wvpm@users.noreply.github.com> | 2024-09-04 19:55:14 +0200 |
commit | cad28078b619825ae6f6c6deb0756157ff9b2064 (patch) | |
tree | d1a634db43cc87f2308ebb1ab211f5eb62542458 | |
parent | 65048e8cc74f6ed30481f50c43f29125f20503b7 (diff) |
Replace promille with * 1000document_regiment_reinforcements
-rw-r--r-- | docs/simulation/calculations.yaml | 8 |
1 files 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/<unit>.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 |