aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--data/recipes/default.js17
1 files changed, 8 insertions, 9 deletions
diff --git a/data/recipes/default.js b/data/recipes/default.js
index f8134985..00d66864 100644
--- a/data/recipes/default.js
+++ b/data/recipes/default.js
@@ -119,21 +119,20 @@ class Item {
}
}
-const FP = new Item("foodprocessor")
-const POT = new Item("pot")
-const PAN = new Item("pan")
-const PL = new Item("plate")
-const GL = new Item("glass")
-const BA = new Item("basket")
-
function crate(s) {
const item = new Item(s);
- out({ action: "instant", inputs: [], outputs: [item], tile: `${s}-crate`, points: -1 })
- out({ action: "instant", inputs: [item], outputs: [], tile: `${s}-crate`, points: 1 })
out({ action: "instant", inputs: [], outputs: [item], tile: `crate\:${s}`, points: -1 })
out({ action: "instant", inputs: [item], outputs: [], tile: `crate\:${s}`, points: 1 })
return item
}
+
+const FP = new Item("foodprocessor")
+const POT = new Item("pot")
+const PAN = new Item("pan")
+const PL = crate("plate")
+const GL = crate("glass")
+const BA = new Item("basket")
+
function cut(s, two, duration = 2) {
const o = new Item(`sliced-${s.name}`, s.container)
out({ action: "active", inputs: [s], outputs: [o, two ? o : null], tile: "cutting-board", duration })