checkpoint
This commit is contained in:
169
plus.py
169
plus.py
@@ -15,6 +15,7 @@ class Machines(Enum):
|
||||
FlexibleBlastFurnace = Machine(name="Flexible Blast Furnace")
|
||||
Reformer = Machine(name="Reformer")
|
||||
WetWasher = Machine(name="Wet Washer")
|
||||
BoilerMk1 = Machine(name="Boiler Mk1")
|
||||
|
||||
|
||||
class Items(Enum):
|
||||
@@ -88,6 +89,21 @@ class Items(Enum):
|
||||
ColdSlag = Item(name="Cold Slag")
|
||||
FanBlades = Item(name="Fan Blades")
|
||||
TailingsSlurry = Item(name="Tailings Slurry")
|
||||
CarbonPowder = Item(name="Carbon Powder")
|
||||
Coal = Item(name="Coal")
|
||||
MoltenSteel = Item(name="Molten Steel")
|
||||
FlueGas = Item(name="Flue Gas")
|
||||
SteelIngot = Item(name="Steel Ingot")
|
||||
Air = Item(name="Air")
|
||||
SteelBeam = Item(name="Steel Beam")
|
||||
SteelPipe = Item(name="Steel Pipe")
|
||||
SteelBolt = Item(name="Steel Bolt")
|
||||
SteelRod = Item(name="Steel Rod")
|
||||
Stator = Item(name="Stator")
|
||||
Kyalite = Item(name="Kyalite")
|
||||
Salt = Item(name="Salt")
|
||||
Diamonds = Item(name="Diamonds")
|
||||
QuartzCrystal = Item(name="Quartz Crystal")
|
||||
|
||||
class RawResources(Enum):
|
||||
Water = Items.Water
|
||||
@@ -95,6 +111,9 @@ class RawResources(Enum):
|
||||
LarrussiteOre = Items.LarrussiteOre
|
||||
CallaniteOre = Items.CallaniteOre
|
||||
AuroviteOre = Items.AuroviteOre
|
||||
Kyalite = Items.Kyalite
|
||||
Coal = Items.Coal
|
||||
Air = Items.Air
|
||||
|
||||
|
||||
class Recipe(BaseModel):
|
||||
@@ -122,9 +141,9 @@ class Recipes(Enum):
|
||||
building=Machines.Crusher,
|
||||
outputs={
|
||||
Items.CrushedLarrussite: 40.0,
|
||||
Items.CrushedGangue: 20.0,
|
||||
},
|
||||
inputs={Items.LarrussiteOre: 60.0},
|
||||
byproducts={Items.CrushedGangue: 20.0,}
|
||||
)
|
||||
CrushedCallanite = Recipe(
|
||||
name="Crushed Callanite",
|
||||
@@ -144,6 +163,15 @@ class Recipes(Enum):
|
||||
},
|
||||
inputs={Items.AuroviteOre: 60.0},
|
||||
)
|
||||
CrushedSilica = Recipe(
|
||||
name="Crushed Silica",
|
||||
building=Machines.Crusher,
|
||||
outputs={
|
||||
Items.Silica: 60.0,
|
||||
Items.Sand: 40.0,
|
||||
},
|
||||
inputs={Items.Kyalite: 60.0},
|
||||
)
|
||||
# - Crushing Powders
|
||||
CoarseSand = Recipe(
|
||||
name="Coarse Sand",
|
||||
@@ -161,7 +189,14 @@ class Recipes(Enum):
|
||||
},
|
||||
inputs={Items.CrushedMagnesium: 80.0},
|
||||
)
|
||||
|
||||
CarbonPowder = Recipe(
|
||||
name="Carbon Powder",
|
||||
building=Machines.Crusher,
|
||||
outputs={
|
||||
Items.CarbonPowder: 40.0
|
||||
},
|
||||
inputs={Items.Coal: 80.0},
|
||||
)
|
||||
# Sorter
|
||||
# - Simple Sorting
|
||||
CrushedIron = Recipe(
|
||||
@@ -190,9 +225,11 @@ class Recipes(Enum):
|
||||
outputs={
|
||||
Items.CrushedZinc: 96.0,
|
||||
Items.Sand: 48.0,
|
||||
Items.CrushedGangue: 60.0,
|
||||
},
|
||||
inputs={Items.CrushedLarrussite: 120.0},
|
||||
byproducts={
|
||||
Items.CrushedGangue: 60.0,
|
||||
}
|
||||
)
|
||||
CrushedCaterium = Recipe(
|
||||
name="Crushed Caterium",
|
||||
@@ -204,6 +241,30 @@ class Recipes(Enum):
|
||||
},
|
||||
inputs={Items.CrushedAurovite: 120.0},
|
||||
)
|
||||
QuartzCrystal = Recipe(
|
||||
name="Quartz Crystal",
|
||||
building=Machines.Sorter,
|
||||
outputs={
|
||||
Items.QuartzCrystal: 100.0,
|
||||
Items.Salt: 40.0,
|
||||
Items.Sand: 40.0,
|
||||
},
|
||||
inputs={Items.Kyalite: 120.0},
|
||||
)
|
||||
# - Advanced Sorting
|
||||
SaltKyalite = Recipe(
|
||||
name="Salt (Kyalite)",
|
||||
building=Machines.Sorter,
|
||||
outputs={
|
||||
Items.Salt: 90.0,
|
||||
Items.Silica: 45.0,
|
||||
Items.Sand: 30.0,
|
||||
},
|
||||
inputs={
|
||||
Items.Kyalite: 120.0,
|
||||
Items.Water: 45.0,
|
||||
},
|
||||
)
|
||||
# Smelter
|
||||
# - smelting
|
||||
IronIngot = Recipe(
|
||||
@@ -411,6 +472,18 @@ class Recipes(Enum):
|
||||
outputs={Items.BrassPlates: 18.0},
|
||||
inputs={Items.BrassIngot: 25.0},
|
||||
)
|
||||
SteelBolt = Recipe(
|
||||
name="Steel Bolt",
|
||||
building=Machines.Constructor,
|
||||
outputs={Items.SteelBolt: 37.5},
|
||||
inputs={Items.SteelRod: 12.5},
|
||||
)
|
||||
HighPressureDiamond = Recipe(
|
||||
name="High Pressure Diamond",
|
||||
building=Machines.Constructor,
|
||||
outputs={Items.Diamonds: 1.0},
|
||||
inputs={Items.CarbonPowder: 20.0},
|
||||
)
|
||||
# Foundry
|
||||
# - Building Parts
|
||||
SolarCell = Recipe(
|
||||
@@ -442,6 +515,25 @@ class Recipes(Enum):
|
||||
Items.TinIngot: 15.0,
|
||||
},
|
||||
)
|
||||
# - Industrial Parts
|
||||
SteelBeam = Recipe(
|
||||
name="Steel Beam",
|
||||
building=Machines.Foundry,
|
||||
outputs={Items.SteelBeam: 22.5},
|
||||
inputs={
|
||||
Items.SteelIngot: 60.0,
|
||||
Items.ZincIngot: 20.0
|
||||
},
|
||||
)
|
||||
CastSteelPipe = Recipe(
|
||||
name="Cast Steel Pipe",
|
||||
building=Machines.Foundry,
|
||||
outputs={Items.SteelPipe: 45.0},
|
||||
inputs={
|
||||
Items.SteelIngot: 30.0,
|
||||
Items.Sand: 24.0,
|
||||
},
|
||||
)
|
||||
# - Other
|
||||
ThermalSilica = Recipe(
|
||||
name="Thermal Silica",
|
||||
@@ -452,6 +544,15 @@ class Recipes(Enum):
|
||||
Items.MagnesiumGranules: 27.0,
|
||||
},
|
||||
)
|
||||
SaltySlag = Recipe(
|
||||
name="Salty Slag",
|
||||
building=Machines.Foundry,
|
||||
outputs={Items.ColdSlag: 15.0},
|
||||
inputs={
|
||||
Items.Salt: 22.5,
|
||||
Items.MagnesiumGranules: 30.0,
|
||||
},
|
||||
)
|
||||
# Assembler
|
||||
# - Building Parts
|
||||
SmoothBeltDrive = Recipe(
|
||||
@@ -583,6 +684,15 @@ class Recipes(Enum):
|
||||
Items.CopperBusbars: 10.0,
|
||||
},
|
||||
)
|
||||
Stator = Recipe(
|
||||
name="Stator",
|
||||
building=Machines.Assembler,
|
||||
outputs={Items.Stator: 6.0},
|
||||
inputs={
|
||||
Items.SteelPipe: 18.0,
|
||||
Items.TinnedWire: 36.0,
|
||||
},
|
||||
)
|
||||
# Flexible Blast Furnace
|
||||
# - Molten Metals
|
||||
MoltenIron = Recipe(
|
||||
@@ -619,7 +729,36 @@ class Recipes(Enum):
|
||||
Items.MoltenCopper: 20.0,
|
||||
},
|
||||
)
|
||||
MoltenSteel = Recipe(
|
||||
name="Molten Steel",
|
||||
building=Machines.FlexibleBlastFurnace,
|
||||
outputs={
|
||||
Items.MoltenSteel: 40.0,
|
||||
Items.FlueGas: 30.0
|
||||
},
|
||||
inputs={
|
||||
Items.MoltenIron: 40.0,
|
||||
Items.CarbonPowder: 40.0,
|
||||
Items.Steam: 60.0
|
||||
},
|
||||
)
|
||||
# Reformer
|
||||
# - Cooling
|
||||
CastSteelRod = Recipe(
|
||||
name="Cast Steel Rod",
|
||||
building=Machines.Reformer,
|
||||
outputs={
|
||||
Items.SteelRod: 37.5,
|
||||
},
|
||||
inputs={
|
||||
Items.MoltenSteel: 20.0,
|
||||
Items.Water: 40.0,
|
||||
},
|
||||
byproducts={
|
||||
Items.Steam: 40.0,
|
||||
Items.ColdSlag: 15.0,
|
||||
}
|
||||
)
|
||||
# - Ingots
|
||||
CastIronIngot = Recipe(
|
||||
name="Cast Iron Ingot",
|
||||
@@ -669,6 +808,20 @@ class Recipes(Enum):
|
||||
Items.Water: 15.0,
|
||||
}
|
||||
)
|
||||
CastSteelIngot = Recipe(
|
||||
name="Cast Steel Ingot",
|
||||
building=Machines.Reformer,
|
||||
outputs={
|
||||
Items.SteelIngot: 90.0,
|
||||
Items.FlueGas: 30.0,
|
||||
Items.ColdSlag: 37.5,
|
||||
},
|
||||
inputs={
|
||||
Items.CrushedGangue: 37.5,
|
||||
Items.MoltenSteel: 30.0,
|
||||
Items.Air: 30.0
|
||||
}
|
||||
)
|
||||
# Wet Washer
|
||||
# - Washing
|
||||
WashedIron = Recipe(
|
||||
@@ -707,5 +860,15 @@ class Recipes(Enum):
|
||||
Items.Water: 30.0,
|
||||
}
|
||||
)
|
||||
SteamMk1 = Recipe(
|
||||
name="Steam Mk1",
|
||||
building=Machines.BoilerMk1,
|
||||
outputs={
|
||||
Items.Steam: 30.0,
|
||||
},
|
||||
inputs={
|
||||
Items.Water: 15.0,
|
||||
}
|
||||
)
|
||||
|
||||
Recipe.model_rebuild()
|
||||
Reference in New Issue
Block a user