Skip to content

Commit

Permalink
(Aegis) Update economies
Browse files Browse the repository at this point in the history
  • Loading branch information
ahyangyi committed Nov 19, 2023
1 parent e61dd71 commit 46823ec
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 6 deletions.
14 changes: 11 additions & 3 deletions industry/economies/vanilla_subtropical.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,17 @@ def get_economy(self, parameters):
ret.graph[worker_yard] = WorkerYard(workers, boosters=(goods, diamonds, mail))
elif parameters["WORKFORCE"] == "YETI_TIRED":
ret.graph[worker_yard] = WorkerYard(workers, boosters=(goods, diamonds, tired_workers))
ret.graph[diamond_mine].produces += (tired_workers,)
# FIXME
ret.graph[diamond_mine].boosters = workers

# FIXME: remove PRESET; support SECONDARY
if parameters["WORKER_PARTICIPATION"] in ("PRESET", "NONE"):
ret.graph[diamond_mine].boosters = workers
if parameters["WORKFORCE"] == "YETI_TIRED":
ret.graph[diamond_mine].produces += (tired_workers,)
if parameters["WORKER_PARTICIPATION"] in ("PRIMARY_INDUSTRY", "SECONDARY_INDUSTRY", "BOTH"):
for i in [diamond_mine, oil_wells, copper_ore_mine, farm, lumber_mill]:
ret.graph[i] = ret.graph[i].to_secondary(workers)
if parameters["WORKFORCE"] == "YETI_TIRED":
ret.graph[i].produces += (tired_workers,)

if parameters["TOWN_GOODS"] in ("ORGANIC", "FOOD_AND_WATER"):
ret.graph[water_supply] = PrimaryIndustry(water)
Expand Down
14 changes: 11 additions & 3 deletions industry/economies/vanilla_temperate.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,17 @@ def get_economy(self, parameters):
ret.graph[worker_yard] = WorkerYard(workers, boosters=(goods, valuables, mail))
elif parameters["WORKFORCE"] == "YETI_TIRED":
ret.graph[worker_yard] = WorkerYard(workers, boosters=(goods, valuables, tired_workers))
ret.graph[coal_mine].produces += (tired_workers,)
# FIXME
ret.graph[coal_mine].boosters = workers

# FIXME: remove PRESET; support SECONDARY
if parameters["WORKER_PARTICIPATION"] in ("PRESET", "NONE"):
ret.graph[coal_mine].boosters = workers
if parameters["WORKFORCE"] == "YETI_TIRED":
ret.graph[coal_mine].produces += (tired_workers,)
if parameters["WORKER_PARTICIPATION"] in ("PRIMARY_INDUSTRY", "SECONDARY_INDUSTRY", "BOTH"):
for i in [coal_mine, oil_wells, oil_rig, iron_ore_mine, farm, forest]:
ret.graph[i] = ret.graph[i].to_secondary(workers)
if parameters["WORKFORCE"] == "YETI_TIRED":
ret.graph[i].produces += (tired_workers,)

if parameters["TOWN_GOODS"] in ("FOOD", "FOOD_AND_WATER"):
ret.graph[food_processing_plant] = SecondaryIndustry(
Expand Down

0 comments on commit 46823ec

Please sign in to comment.