diff options
author | metamuffin <metamuffin@disroot.org> | 2024-12-22 13:10:13 +0100 |
---|---|---|
committer | metamuffin <metamuffin@noreply.codeberg.org> | 2025-09-17 22:43:33 +0200 |
commit | 9a36cf29d91227c0f4e7fa70b71eff9005aac2fc (patch) | |
tree | b3390dab338c7e59094a2d1dd2596039ec92df75 /data | |
parent | be256046253098cd5f2f983c4dcc7d0b179fa2f8 (diff) | |
download | hurrycurry-9a36cf29d91227c0f4e7fa70b71eff9005aac2fc.tar hurrycurry-9a36cf29d91227c0f4e7fa70b71eff9005aac2fc.tar.bz2 hurrycurry-9a36cf29d91227c0f4e7fa70b71eff9005aac2fc.tar.zst |
pizza and noodles draft
Diffstat (limited to 'data')
-rw-r--r-- | data/maps/debug.yaml | 6 | ||||
-rw-r--r-- | data/recipes/default.js | 28 |
2 files changed, 30 insertions, 4 deletions
diff --git a/data/maps/debug.yaml b/data/maps/debug.yaml index 97dc408a..8778cff4 100644 --- a/data/maps/debug.yaml +++ b/data/maps/debug.yaml @@ -18,9 +18,9 @@ map: - "........................" - "...~...................." - "........................" - - "..0123456789............" + - "..0123456789ß..........." - "....................¹..." - - "..⌷ffC.SSoo..X......⌷..." + - "..⌷fRC.SSoo..X......⌷..." - "..s⌷⌷⌷ɷ⌷⌷zz.........²..." - "................³......." - "..ppppbpppp............." @@ -46,6 +46,7 @@ tiles: "S": stove "b": book "C": cuttingboard + "R": rollingboard "0": rice-crate "1": steak-crate "2": tomato-crate @@ -56,6 +57,7 @@ tiles: "7": fish-crate "8": cheese-crate "9": lettuce-crate + "ß": mushroom-crate "X": trash "¹": black-hole-counter 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) |