diff options
Diffstat (limited to 'data/recipes')
-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() |