checkpoint
This commit is contained in:
1
main.py
1
main.py
@@ -51,6 +51,7 @@ class ProductionChain:
|
||||
self.byproduct: Dict[Items, float] = defaultdict(float)
|
||||
self.preferred_recipes = preferred_recipes or {}
|
||||
self.preferred_recipes[Items.Steam] = Recipes.SteamMk1.value
|
||||
# self.preferred_recipes[Items.Sand] = Recipes.CoarseSand.value
|
||||
|
||||
def get_recipe(self, item: Items) -> Optional[Recipe]:
|
||||
if item in self.preferred_recipes:
|
||||
|
||||
37
plus.py
37
plus.py
@@ -104,6 +104,7 @@ class Items(Enum):
|
||||
Salt = Item(name="Salt")
|
||||
Diamonds = Item(name="Diamonds")
|
||||
QuartzCrystal = Item(name="Quartz Crystal")
|
||||
BrassBeltDrive = Item(name="Brass Belt Drive")
|
||||
|
||||
class RawResources(Enum):
|
||||
Water = Items.Water
|
||||
@@ -515,6 +516,16 @@ class Recipes(Enum):
|
||||
Items.TinIngot: 15.0,
|
||||
},
|
||||
)
|
||||
# - Standard Parts
|
||||
TemperedSteelRod = Recipe(
|
||||
name="Tempered Steel Rod",
|
||||
building=Machines.Foundry,
|
||||
outputs={Items.SteelRod: 12.5},
|
||||
inputs={
|
||||
Items.IronRod: 30.0,
|
||||
Items.CarbonPowder: 12.5
|
||||
}
|
||||
)
|
||||
# - Industrial Parts
|
||||
SteelBeam = Recipe(
|
||||
name="Steel Beam",
|
||||
@@ -742,6 +753,19 @@ class Recipes(Enum):
|
||||
Items.Steam: 60.0
|
||||
},
|
||||
)
|
||||
DirectSteel = Recipe(
|
||||
name="Direct Steel",
|
||||
building=Machines.FlexibleBlastFurnace,
|
||||
outputs={
|
||||
Items.MoltenSteel: 60.0,
|
||||
Items.FlueGas: 10.0
|
||||
},
|
||||
inputs={
|
||||
Items.IronIngot: 120.0,
|
||||
Items.Steam: 40.0,
|
||||
Items.Air: 75.0
|
||||
}
|
||||
)
|
||||
# Reformer
|
||||
# - Cooling
|
||||
CastSteelRod = Recipe(
|
||||
@@ -822,6 +846,19 @@ class Recipes(Enum):
|
||||
Items.Air: 30.0
|
||||
}
|
||||
)
|
||||
# - Other
|
||||
BrassBeltDrive = Recipe(
|
||||
name="Brass Belt Drive",
|
||||
building=Machines.Reformer,
|
||||
outputs={
|
||||
Items.BrassBeltDrive: 20.0,
|
||||
},
|
||||
inputs={
|
||||
Items.Stator: 8.0,
|
||||
Items.MoltenBrass: 20.0,
|
||||
Items.Air: 36.0,
|
||||
}
|
||||
)
|
||||
# Wet Washer
|
||||
# - Washing
|
||||
WashedIron = Recipe(
|
||||
|
||||
Reference in New Issue
Block a user