aboutsummaryrefslogtreecommitdiff
path: root/docs/simulation/calculations.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'docs/simulation/calculations.yaml')
-rw-r--r--docs/simulation/calculations.yaml8
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