diff options
Diffstat (limited to 'data/recipes')
-rw-r--r-- | data/recipes/default.js | 28 |
1 files changed, 26 insertions, 2 deletions
diff --git a/data/recipes/default.js b/data/recipes/default.js index 7c8f6f36..42673950 100644 --- a/data/recipes/default.js +++ b/data/recipes/default.js @@ -123,6 +123,11 @@ function cut(s, two) { out({ action: "active", inputs: [s], outputs: [o, two ? o : null], tile: "cuttingboard", duration: 2 }) return o } +function roll(s, two) { + const o = new Item(`rolled-${s.name}`, s.container) + out({ action: "active", inputs: [s], outputs: [o, two ? o : null], tile: "rollingboard", duration: 2 }) + return o +} function cook(s, duration = 20) { const o = new Item(`cooked-${s.name}`, s.container) out({ action: "passive", duration, revert_duration: duration * 2, tile: "stove", inputs: [s], outputs: [o] }) @@ -137,7 +142,7 @@ function sear(s, duration = 15) { return o } function bake(s, duration = 25) { - const o = new Item(`sliced-${s.name}`, s.container) + const o = new Item(`baked-${s.name}`, s.container) out({ action: "passive", duration, revert_duration: duration * 2, tile: "oven", inputs: [s], outputs: [o] }) out({ action: "passive", duration: duration / 2, revert_duration: duration / 4, tile: "oven", inputs: [o], outputs: [new Item("burned")], warn: true }) return o @@ -187,6 +192,9 @@ function combine(c, ...items) { } return result } +function merge(...items) { + return combine(null, ...items) +} function edible(...items) { for (const i of items) { out({ action: "demand", inputs: [i], outputs: [i.container?.dispose ?? i.container], duration: 10 }) @@ -215,12 +223,22 @@ const coconut = crate("coconut") const strawberry = crate("strawberry") const cheese = crate("cheese") const lettuce = crate("lettuce") +const mushroom = crate("mushroom") // Buns const dough = process(flour.tr(FP)).as("dough").tr() const bun = bake(dough).as("bun") edible(bun.tr(PL)) +// Pizza +const tomato_juice = process(tomato.tr(FP)).as("tomato-juice") +const pizza_dough = roll(dough) +edible( + bake(merge(pizza_dough, tomato_juice, cut(cheese), cut(mushroom))).tr(PL), + bake(merge(pizza_dough, tomato_juice, cut(cheese), cut(steak))).tr(PL), + bake(merge(pizza_dough, tomato_juice, cut(cheese))).tr(PL), +) + // Steak const seared_steak = sear(steak) edible( @@ -245,8 +263,14 @@ edible( combine(PL, cut(bun), cut(lettuce), cut(tomato)), ) +// Noodles +const noodle = cook(cut(roll(dough)).as("noodles").tr(POT)) +edible( + combine(PL, noodle, tomato_juice, cut(cheese)), + combine(PL, noodle, tomato_juice, cut(cheese), b_patty), +) + // Soup -const tomato_juice = process(tomato.tr(FP)).as("tomato-juice") const leek_tj_pot = combine(POT, leek, tomato_juice) const tomato_soup_plate = cook(leek_tj_pot).as("tomato-soup").tr(PL) edible(tomato_soup_plate) |