diff options
author | metamuffin <metamuffin@disroot.org> | 2024-09-16 15:33:32 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-09-16 15:34:01 +0200 |
commit | 6a607536ef66b3fd711ce70e3c269575e11bebfe (patch) | |
tree | 647d377b946f853d71570034b968626cae1a71da | |
parent | f4642ba743b1758a2252434524cb41b92bf6ebb1 (diff) | |
download | hurrycurry-6a607536ef66b3fd711ce70e3c269575e11bebfe.tar hurrycurry-6a607536ef66b3fd711ce70e3c269575e11bebfe.tar.bz2 hurrycurry-6a607536ef66b3fd711ce70e3c269575e11bebfe.tar.zst |
everything burns on stove
-rw-r--r-- | data/recipes/default.ts | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/data/recipes/default.ts b/data/recipes/default.ts index 849a7076..1d7f6c65 100644 --- a/data/recipes/default.ts +++ b/data/recipes/default.ts @@ -55,7 +55,7 @@ export function finish() { console.log(r); } function auto_trash() { - for (const i of all_items) { + for (const i of [...all_items]) { if (i instanceof Container) continue if (!i.container) out({ action: "instant", inputs: [i], outputs: [], tile: "trash" }) else { @@ -68,6 +68,23 @@ function auto_trash() { } } } +function auto_burn() { + for (const i of [...all_items]) { + if (i instanceof Container) continue + if (i.container || i.name == "burned") continue + else { + out({ + action: "passive", + inputs: [i], + outputs: [new Item("burned")], + duration: 1, + revert_duration: 1, + warn: true, + tile: "stove" + }) + } + } +} class Item { constructor( @@ -264,5 +281,6 @@ const curry_with_rice = combine(PL, cook(rice.tr(POT)), cook(combine(POT, milk, edible(curry_with_rice) auto_trash() +auto_burn() finish() |