Skip to content

Commit

Permalink
(Aegis) New parameter: workforce participation
Browse files Browse the repository at this point in the history
  • Loading branch information
ahyangyi committed Nov 17, 2023
1 parent 567cea8 commit e773b82
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 5 deletions.
8 changes: 8 additions & 0 deletions industry/lang/english-uk.lng
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,14 @@ STR_PARAM_WORKFORCE_YETI_PASSENGERS :Exclusive (Passengers)
STR_PARAM_WORKFORCE_YETI_MAIL :Exclusive (Mail)
STR_PARAM_WORKFORCE_YETI_TIRED :Exclusive (Tired Worker)

STR_PARAM_WORKER_PARTICIPATION :Macroeconomics - Worker Participation
STR_PARAM_WORKER_PARTICIPATION_DESC :Choose what industries workers influence.
STR_PARAM_WORKER_PARTICIPATION_PRESET :Preset
STR_PARAM_WORKER_PARTICIPATION_NONE :None
STR_PARAM_WORKER_PARTICIPATION_PRIMARY_INDUSTRY :Primary Industries
STR_PARAM_WORKER_PARTICIPATION_SECONDARY_INDUSTRY :Secondary Industries
STR_PARAM_WORKER_PARTICIPATION_BOTH :Both

STR_PARAM_TOWN_GOODS :Towns - Growth Requirements
STR_PARAM_TOWN_GOODS_DESC :Choose whether food and/or water are required for town growth. Note that this only functions in the appropriate climate (e.g., if you choose "Food and Water" but play in Subarctic, then still only food is required for towns above snowlines).
STR_PARAM_TOWN_GOODS_PRESET :Preset
Expand Down
26 changes: 21 additions & 5 deletions industry/lib/parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,17 @@
9: "YETI_TIRED",
},
),
Parameter(
"WORKER_PARTICIPATION",
0,
{
0: "PRESET",
1: "NONE",
2: "PRIMARY_INDUSTRY",
3: "SECONDARY_INDUSTRY",
4: "BOTH",
},
),
Parameter(
"TOWN_GOODS",
0,
Expand All @@ -85,8 +96,6 @@
2: "UNIVERSAL_SUPPLIES",
3: "GENERIC_SUPPLIES",
4: "SPECIFIC_SUPPLIES",
5: "TOWN_POPULATION",
6: "WORKERS",
7: "DISCRETE",
8: "CONTINUOUS",
},
Expand Down Expand Up @@ -185,8 +194,6 @@
"UNIVERSAL_SUPPLIES",
"GENERIC_SUPPLIES",
"SPECIFIC_SUPPLIES",
"TOWN_POPULATION",
"WORKERS",
"DISCRETE",
"CONTINUOUS",
],
Expand All @@ -206,6 +213,16 @@
"YETI_TIRED",
],
),
(
"WORKER_PARTICIPATION",
[
"PRESET",
"NONE",
"PRIMARY_INDUSTRY",
"SECONDARY_INDUSTRY",
"BOTH",
],
),
("SEA_INDUSTRY", ["PRESET", "ORGANIC", "LAND_ONLY", "BOTH", "EITHER", "SEA_ONLY"]),
("TOWN_GOODS", ["PRESET", "ORGANIC", "NONE", "FOOD", "FOOD_AND_WATER"]),
],
Expand All @@ -222,7 +239,6 @@
"UNIVERSAL_SUPPLIES",
"GENERIC_SUPPLIES",
"SPECIFIC_SUPPLIES",
"WORKERS",
],
)
docs_parameter_choices.update_params("WORKFORCE", ["ABSTRACT", "PROFESSIONAL", "YETI"])
Expand Down

0 comments on commit e773b82

Please sign in to comment.