Skip to content

Commit

Permalink
(aegis) peat ammonia plant
Browse files Browse the repository at this point in the history
  • Loading branch information
ahyangyi committed Dec 30, 2024
1 parent 5970ad8 commit fa5a110
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions industry/economies/firs_arctic.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ def __init__(self):
def get_economy(self, parameters):
ret = Economy(
{
ammonia_plant: PrimaryIndustry(ammonia),
clay_pit: PrimaryIndustry(china_clay),
peatlands: PrimaryIndustry(peat),
phosphate_mine: PrimaryIndustry(phosphate),
Expand All @@ -72,12 +71,13 @@ def get_economy(self, parameters):
fishing_grounds: PrimaryIndustry(fish),
forest: PrimaryIndustry(wood),
herding_coop: PrimaryIndustry(food),
ammonia_plant: SecondaryIndustry(peat, ammonia),
ashery: SecondaryIndustry(wood, potash),
pyrite_smelter: SecondaryIndustry(pyrite_ore, (sulphur, zinc)),
sawmill: SecondaryIndustry(wood, timber),
chemical_plant: SecondaryIndustry((phosphate, sulphur, ammonia, potash), (explosives, fertiliser)),
fishing_harbor: SecondaryIndustry(fish, food),
paper_mill: SecondaryIndustry((wood, sulphur, china_clay), paper),
pyrite_smelter: SecondaryIndustry(pyrite_ore, (sulphur, zinc)),
sawmill: SecondaryIndustry(wood, timber),
power_station: TertiaryIndustry(peat),
general_store: TertiaryIndustry((explosives, fertiliser, zinc, timber)),
towns: Town(passengers, mail, food, paper),
Expand All @@ -97,8 +97,6 @@ def get_economy(self, parameters):
del ret.graph[clay_pit]

if parameters["PRIMARY_INDUSTRY_GROWTH"] == "UNIVERSAL_SUPPLIES":
if ammonia_plant in ret.graph:
ret.graph[ammonia_plant].boosters = engineering_supplies
if clay_pit in ret.graph:
ret.graph[clay_pit].boosters = engineering_supplies
ret.graph[peatlands].boosters = engineering_supplies
Expand All @@ -116,8 +114,6 @@ def get_economy(self, parameters):
ret.graph[paper_mill].produces += (engineering_supplies,)

elif parameters["PRIMARY_INDUSTRY_GROWTH"] == "GENERIC_SUPPLIES":
if ammonia_plant in ret.graph:
ret.graph[ammonia_plant].boosters = engineering_supplies
if clay_pit in ret.graph:
ret.graph[clay_pit].boosters = engineering_supplies
ret.graph[peatlands].boosters = engineering_supplies
Expand All @@ -139,8 +135,8 @@ def get_economy(self, parameters):
ret,
(paper, zinc),
(fishing_grounds,),
(ammonia_plant, clay_pit, peatlands, phosphate_mine, pyrite_mine, fish_farm, forest, herding_coop),
(ashery, chemical_plant, fishing_harbor, paper_mill, pyrite_smelter, sawmill),
(clay_pit, peatlands, phosphate_mine, pyrite_mine, fish_farm, forest, herding_coop),
(ammonia_plant, ashery, chemical_plant, fishing_harbor, paper_mill, pyrite_smelter, sawmill),
)

if port in ret.graph:
Expand Down

0 comments on commit fa5a110

Please sign in to comment.