diff options
Diffstat (limited to 'data/recipes/default.ts')
-rw-r--r-- | data/recipes/default.ts | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/data/recipes/default.ts b/data/recipes/default.ts index 041b7d99..2fb74c7b 100644 --- a/data/recipes/default.ts +++ b/data/recipes/default.ts @@ -59,7 +59,12 @@ function auto_trash() { if (i instanceof Container) continue if (!i.container) out({ action: "instant", inputs: [i], outputs: [], tile: "trash" }) else { - out({ action: "instant", inputs: [i], outputs: [i.container.dispose ?? i.container], tile: "trash" }) + out({ + action: "instant", + inputs: [i], + outputs: [i.container.dispose ?? i.container], + tile: i.container.dispose_tile ?? "trash" + }) } } } @@ -81,11 +86,11 @@ class Item { } } -class Container extends Item { constructor(name: string, public dispose?: Item) { super(name) } } +class Container extends Item { constructor(name: string, public dispose?: Item, public dispose_tile?: string) { super(name) } } const FP = new Container("foodprocessor") const POT = new Container("pot") const PL = new Container("plate", new Container("dirty-plate")) -const GL = new Container("glass") +const GL = new Container("glass", undefined, "sink") function crate(s: string): Item { const item = new Item(s); @@ -228,10 +233,12 @@ edible(strawberry_mochi) // Drinks edible( strawberry_shake.tr(GL), + tomato_juice.tr(GL), sink_fill(GL) ) -const curry_with_rice = combine(PL, cook(rice.tr(POT)), cook(combine(POT, milk, tomato, leek))) +// Curry +const curry_with_rice = combine(PL, cook(rice.tr(POT)), cook(combine(POT, milk, tomato, leek)).as("curry")) edible(curry_with_rice) auto_trash() |