From e1ef4ff16016de906ea7d1fad344e135bb3660e5 Mon Sep 17 00:00:00 2001 From: wvpm <24685035+wvpm@users.noreply.github.com> Date: Tue, 10 Sep 2024 19:19:23 +0200 Subject: Rename sum_workforce_in_state to total_factory_jobs_in_state --- docs/simulation/calculations.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs/simulation') 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 -- cgit v1.2.3-56-ga3b1