checkpoint
This commit is contained in:
6
plus.py
6
plus.py
@@ -1,7 +1,7 @@
|
||||
from enum import Enum
|
||||
from typing import Dict
|
||||
|
||||
from pydantic import BaseModel, Field
|
||||
from pydantic import BaseModel, Field, ConfigDict
|
||||
|
||||
|
||||
class Item(BaseModel):
|
||||
@@ -77,7 +77,9 @@ class Items(Enum):
|
||||
BronzeFrame = Item(name="Bronze Frame")
|
||||
AILimiter = Item(name="AI Limiter")
|
||||
|
||||
|
||||
class Recipe(BaseModel):
|
||||
model_config = ConfigDict(frozen=True)
|
||||
name: str # Human-friendly name
|
||||
building: Machines # e.g., "Smelter", "Constructor"
|
||||
outputs: Dict[Items, float] # Produced item name
|
||||
@@ -216,7 +218,7 @@ class Recipes(Enum):
|
||||
name="Impure Caterium Ingot",
|
||||
building=Machines.Smelter,
|
||||
inputs={Items.CrushedAurovite: 40.0},
|
||||
outputs={Items.CopperIngot: 24.0},
|
||||
outputs={Items.CateriumIngot: 24.0},
|
||||
)
|
||||
ZincIngot = Recipe(
|
||||
name="Zinc Ingot",
|
||||
|
||||
Reference in New Issue
Block a user