aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author wvpm <24685035+wvpm@users.noreply.github.com>2024-09-10 19:19:23 +0200
committer wvpm <24685035+wvpm@users.noreply.github.com>2024-09-10 19:19:23 +0200
commite1ef4ff16016de906ea7d1fad344e135bb3660e5 (patch)
tree4fb5cccccc532cc85ab90aace2c2910ead698f4c
parent21ded6996c3ae3fd4c812a3a6164886e88d97155 (diff)
Rename sum_workforce_in_state to total_factory_jobs_in_staterename_sum_workforce_in_state
-rw-r--r--docs/simulation/calculations.yaml4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/simulation/calculations.yaml b/docs/simulation/calculations.yaml
index b7aa6ff..e9de17a 100644
--- a/docs/simulation/calculations.yaml
+++ b/docs/simulation/calculations.yaml
@@ -189,14 +189,14 @@ Scores:
investment score: money_invested * defines.country.INVESTMENT_SCORE_FACTOR / 100
state factory score:
if n_workers > 0:
- formula: sum_factory_levels_in_state * max(0.2, min(4, floor(n_workers_in_state / 100) * 400 / sum_workforce_in_state))
+ formula: sum_factory_levels_in_state * max(0.2, min(4, floor(n_workers_in_state / 100) * 400 / total_factory_jobs_in_state))
sum_factory_levels_in_state: sum of factory levels in the state
max(0.2: Hardcoded minimum score per factory level.
min(4: Hardcoded maximum score per factory level.
floor(n_workers_in_state / 100): Hardcoded number step.
400: Hardcoded value.
n_workers_in_state: Total size of POPs in state (employed or not) where POP type has `can_work_factory = yes`.
- sum_workforce_in_state: Sum of (factory level * workforce), defined in /common/production_types.txt.
+ total_factory_jobs_in_state: Sum of (factory level * workforce), defined in /common/production_types.txt.
else: 0
Military power:
formula: soldier & army score + capital ship score + leader score