aboutsummaryrefslogtreecommitdiff
path: root/data/recipes
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-09-16 15:33:32 +0200
committermetamuffin <metamuffin@disroot.org>2024-09-16 15:34:01 +0200
commit6a607536ef66b3fd711ce70e3c269575e11bebfe (patch)
tree647d377b946f853d71570034b968626cae1a71da /data/recipes
parentf4642ba743b1758a2252434524cb41b92bf6ebb1 (diff)
downloadhurrycurry-6a607536ef66b3fd711ce70e3c269575e11bebfe.tar
hurrycurry-6a607536ef66b3fd711ce70e3c269575e11bebfe.tar.bz2
hurrycurry-6a607536ef66b3fd711ce70e3c269575e11bebfe.tar.zst
everything burns on stove
Diffstat (limited to 'data/recipes')
-rw-r--r--data/recipes/default.ts20
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()