mall-solver/data.py

51 lines
1.8 KiB
Python
Raw Permalink Normal View History

2023-11-23 01:11:19 -05:00
from enum import Enum
2023-11-23 18:14:39 -05:00
from engine import Collection, Recipe
2023-11-23 01:11:19 -05:00
2023-11-23 18:14:39 -05:00
class Items(Collection):
2023-11-23 01:11:19 -05:00
IronBar = "Iron Bar"
CopperBar = "Copper Bar"
SteelBar = "Steel Bar"
IronPlate = "Iron Plate"
CopperPlate = "Copper Plate"
IronBeam = "Iron Beam"
CopperBeam = "Copper Beam"
SteelBeam = "Steel Beam"
IronMechanicalParts = "Iron Mechanical Parts"
CopperMechanicalParts = "Copper Mechanical Parts"
SteelMechanicalParts = "Steel Mechanical Parts"
CrushedIron = "Crushed Iron"
CrushedCoalCoke = "Crushed Coal Coke"
SteelBlend = "Steel Blend"
CoalCoke = "Coal Coke"
SteamEngine = "Steam Engine"
SteamAssembler = "Steam Assembler"
SteamCrusher = "Steam Crusher"
Pipe = "Pipe"
2023-11-23 18:14:39 -05:00
class Recipes(Collection):
IronPlate = Recipe([Items.IronBar], [Items.IronPlate], "Iron Plate")
CopperPlate = Recipe([Items.CopperBar], [Items.CopperPlate], "Copper Plate")
IronBeam = Recipe([Items.IronBar], [Items.IronBeam], "Iron Beam")
CopperBeam = Recipe([Items.CopperBar], [Items.CopperBeam], "Copper Beam")
SteelBeam = Recipe([Items.SteelBar], [Items.SteelBeam], "Steel Beam")
IronMechanicalParts = Recipe([Items.IronBar], [Items.IronMechanicalParts], "Iron Mechanical Parts")
CopperMechanicalParts = Recipe([Items.CopperBar], [Items.CopperMechanicalParts], "Copper Mechanical Parts")
SteelMechanicalParts = Recipe([Items.SteelBar], [Items.SteelMechanicalParts], "Steel Mechanical Parts")
Pipe = Recipe([Items.IronPlate, Items.IronMechanicalParts], [Items.Pipe], "Pipe")
SteamEngine = Recipe([Items.Pipe, Items.CopperMechanicalParts], [Items.SteamEngine], "Steam Engine")
2023-11-23 01:11:19 -05:00
SteamAssembler = Recipe([
2023-11-23 18:14:39 -05:00
Items.Pipe,
Items.CopperMechanicalParts,
Items.SteamEngine,
Items.CopperBeam
], [Items.SteamAssembler], "Steam Assembler")
2023-11-23 01:11:19 -05:00
SteamCrusher = Recipe([
2023-11-23 18:14:39 -05:00
Items.Pipe,
Items.IronMechanicalParts,
Items.SteamEngine,
Items.CopperBeam
], [Items.SteamCrusher], "Steam Crusher")
2023-11-23 01:11:19 -05:00