Skip to content

Commit 7bef415

Browse files
authored
Merge pull request #438 from OpenVicProject/document_rgo_size_modifiers
Document rgo size modifiers
2 parents c16d259 + 8007d79 commit 7bef415

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

docs/simulation/calculations.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,13 @@ Economy:
6565
FACTORY_PURCHASE_DRAWDOWN_FACTOR: defines.economy.FACTORY_PURCHASE_DRAWDOWN_FACTOR
6666
Resource gathering operation:
6767
base workforce: defined in common/production_types.txt as workforce
68+
rgo size modifier:
69+
formula: sum of good rgo size modifiers + sum of farm size modifiers + sum of mine size modifiers
70+
good rgo size modifiers: from tech, example rgo_size = { coal = 0.1 }
71+
farm size modifiers: farm_rgo_size if farm=yes for province modifier and for tech also no mine=yes
72+
mine size modifiers: mine_rgo_size if mine=yes for tech or no farm=yes for province modifier
6873
rgo size:
69-
formula: floor(1.5 * ceil(n_workers_in_province / (base workforce * (1 + terrain rgo size modifier)))
74+
formula: floor(1.5 * ceil(n_workers_in_province / (base workforce * (1 + rgo size modifier)))
7075
n_workers_in_province: Total size of POPs in province where POP type is in employees (common/production_types.txt).
7176
note: Calculated when starting a new game.
7277
Output:
@@ -78,7 +83,6 @@ Economy:
7883
workforce:
7984
formula: base workforce * rgo size * (1 + rgo size modifier)
8085
base workforce: Defined in common/production_types.txt as workforce.
81-
rgo size modifier: sum of rgo size modifiers + sum of farm size modifiers (if farm=yes) + sum of mine size modifiers (if mine=yes)
8286
job portion of workforce:
8387
formula: employees with job / workforce
8488
employees with job: Number of POPs employed with the job. Job being an entry in employees in common/production_types.txt.

0 commit comments

Comments
 (0)