diff options
| author | metamuffin <metamuffin@disroot.org> | 2025-12-15 12:43:51 +0100 |
|---|---|---|
| committer | metamuffin <metamuffin@disroot.org> | 2025-12-15 12:43:51 +0100 |
| commit | 48d7482ded28ce9d3d4ff52517b48665ff1b8ebd (patch) | |
| tree | b994ce370f04f4e890d096065955810908ac9d65 | |
| parent | 767611fa95cd929bb3edcf081cd0143435c88537 (diff) | |
| download | hurrycurry-48d7482ded28ce9d3d4ff52517b48665ff1b8ebd.tar hurrycurry-48d7482ded28ce9d3d4ff52517b48665ff1b8ebd.tar.bz2 hurrycurry-48d7482ded28ce9d3d4ff52517b48665ff1b8ebd.tar.zst | |
add recipes for plate and glass crates
| -rw-r--r-- | data/recipes/default.js | 17 |
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 }) |