diff options
author | wvpm <24685035+wvpm@users.noreply.github.com> | 2024-09-10 19:34:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-10 19:34:59 +0200 |
commit | cfad2d9e2011a5b930efa14e07ce9caf25d9459a (patch) | |
tree | 4fb5cccccc532cc85ab90aace2c2910ead698f4c /docs | |
parent | 21ded6996c3ae3fd4c812a3a6164886e88d97155 (diff) | |
parent | e1ef4ff16016de906ea7d1fad344e135bb3660e5 (diff) |
Merge pull request #269 from OpenVicProject/rename_sum_workforce_in_state
Rename sum_workforce_in_state to total_factory_jobs_in_state
Diffstat (limited to 'docs')
-rw-r--r-- | docs/simulation/calculations.yaml | 4 |
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 |