From 3d13c85ec2e3acbee249b4baf20797cc38a8a121 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Sat, 10 Aug 2024 18:59:52 +0200 Subject: create new 5star and improve several other maps --- data/recipes/default.ts | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'data/recipes') 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() -- cgit v1.2.3-70-g09d2