aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-12-22 14:26:54 +0100
committermetamuffin <metamuffin@noreply.codeberg.org>2025-09-17 22:43:33 +0200
commit6fed80e6837eb784f2af965b79811140c426d7e2 (patch)
treee4cb3f67307791a9fddae77053989b0bf4fa1c8d
parent9a36cf29d91227c0f4e7fa70b71eff9005aac2fc (diff)
downloadhurrycurry-6fed80e6837eb784f2af965b79811140c426d7e2.tar
hurrycurry-6fed80e6837eb784f2af965b79811140c426d7e2.tar.bz2
hurrycurry-6fed80e6837eb784f2af965b79811140c426d7e2.tar.zst
"hot" versions of most demands with chili
-rw-r--r--data/maps/debug.yaml7
-rw-r--r--data/recipes/default.js23
2 files changed, 19 insertions, 11 deletions
diff --git a/data/maps/debug.yaml b/data/maps/debug.yaml
index 8778cff4..08510783 100644
--- a/data/maps/debug.yaml
+++ b/data/maps/debug.yaml
@@ -18,9 +18,9 @@ map:
- "........................"
- "...~...................."
- "........................"
- - "..0123456789ß..........."
+ - "..0123456789ß`.........."
- "....................¹..."
- - "..⌷fRC.SSoo..X......⌷..."
+ - "..⌷fRC.SToo..X......⌷..."
- "..s⌷⌷⌷ɷ⌷⌷zz.........²..."
- "................³......."
- "..ppppbpppp............."
@@ -44,6 +44,7 @@ tiles:
"o": oven
"z": freezer
"S": stove
+ "T": stove
"b": book
"C": cuttingboard
"R": rollingboard
@@ -58,6 +59,7 @@ tiles:
"8": cheese-crate
"9": lettuce-crate
"ß": mushroom-crate
+ "`": chili-crate
"X": trash
"¹": black-hole-counter
@@ -89,6 +91,7 @@ tiles:
items:
"S": pot
+ "T": pan
"w": plate
"p": plate
"f": foodprocessor
diff --git a/data/recipes/default.js b/data/recipes/default.js
index 42673950..34cf2ef9 100644
--- a/data/recipes/default.js
+++ b/data/recipes/default.js
@@ -85,7 +85,6 @@ function auto_burn() {
}
}
}
-
class Item {
constructor(name, container) { this.name = name; this.container = container }
as(s) { this.name = s; return this }
@@ -200,6 +199,12 @@ function edible(...items) {
out({ action: "demand", inputs: [i], outputs: [i.container?.dispose ?? i.container], duration: 10 })
}
}
+function edible_hot(...items) {
+ edible(...items)
+ edible(...items.map(i => {
+ return combine(i.container, i, chili)
+ }))
+}
function either(a, b) {
if (a.name != b.name) throw new Error("either options are named differently");
if (a.container != b.container) throw new Error("either options are contained differently");
@@ -213,6 +218,7 @@ function sink_fill(c) {
out({ action: "active", duration: 2, tile: "sink", inputs: [new Container("dirty-plate")], outputs: [PL] })
+const chili = crate("chili")
const tomato = crate("tomato")
const steak = crate("steak")
const flour = crate("flour")
@@ -233,28 +239,27 @@ edible(bun.tr(PL))
// Pizza
const tomato_juice = process(tomato.tr(FP)).as("tomato-juice")
const pizza_dough = roll(dough)
-edible(
+edible_hot(
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(
+edible_hot(
combine(PL, seared_steak, bun),
combine(PL, seared_steak),
)
// Salad
-edible(
+edible_hot(
combine(PL, cut(tomato), cut(lettuce)),
combine(PL, cut(lettuce)),
)
// Burger
const b_patty = sear(cut(steak).as("patty"))
-edible(
+edible_hot(
combine(PL, cut(bun), b_patty, cut(cheese)),
combine(PL, cut(bun), b_patty, cut(cheese), cut(lettuce)),
combine(PL, cut(bun), b_patty, cut(tomato), cut(lettuce)),
@@ -265,7 +270,7 @@ edible(
// Noodles
const noodle = cook(cut(roll(dough)).as("noodles").tr(POT))
-edible(
+edible_hot(
combine(PL, noodle, tomato_juice, cut(cheese)),
combine(PL, noodle, tomato_juice, cut(cheese), b_patty),
)
@@ -273,7 +278,7 @@ edible(
// Soup
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)
+edible_hot(tomato_soup_plate)
// Rice and nigiri
const nigiri = container_add(cut(fish), cook(rice.tr(POT))).as("nigiri").tr(PL)
@@ -305,7 +310,7 @@ edible(
// Curry
const curry_with_rice = combine(PL, cook(rice.tr(POT)), cook(combine(POT, milk, tomato, leek)).as("curry"))
-edible(curry_with_rice)
+edible_hot(curry_with_rice)
auto_trash()
auto_burn()