From 48d7482ded28ce9d3d4ff52517b48665ff1b8ebd Mon Sep 17 00:00:00 2001 From: metamuffin Date: Mon, 15 Dec 2025 12:43:51 +0100 Subject: add recipes for plate and glass crates --- data/recipes/default.js | 17 ++++++++--------- 1 file 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 }) -- cgit v1.3