aboutsummaryrefslogtreecommitdiff
path: root/data/recipes/default.js
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2025-09-29 21:20:03 +0200
committermetamuffin <metamuffin@disroot.org>2025-09-29 21:20:35 +0200
commitf804c9e219ec8272ad2d8f62b826323be444b207 (patch)
treedf6b0228884c9c7cb0d8555558fd3a2157e96638 /data/recipes/default.js
parent061d81eb5300dd14878e09a9a5f90b491b39db55 (diff)
downloadhurrycurry-f804c9e219ec8272ad2d8f62b826323be444b207.tar
hurrycurry-f804c9e219ec8272ad2d8f62b826323be444b207.tar.bz2
hurrycurry-f804c9e219ec8272ad2d8f62b826323be444b207.tar.zst
Passive deep frying
Diffstat (limited to 'data/recipes/default.js')
-rw-r--r--data/recipes/default.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/data/recipes/default.js b/data/recipes/default.js
index 338768ca..b9cd4906 100644
--- a/data/recipes/default.js
+++ b/data/recipes/default.js
@@ -110,6 +110,7 @@ const POT = new Container("pot")
const PAN = new Container("pan")
const PL = new Container("plate", new Container("dirty-plate"))
const GL = new Container("glass", undefined, "sink")
+const BA = new Container("basket")
function crate(s) {
const item = new Item(s);
@@ -127,9 +128,10 @@ function roll(s, two) {
out({ action: "active", inputs: [s], outputs: [o, two ? o : null], tile: "rolling-board", duration: 2 })
return o
}
-function deep_fry(s, two) {
- const o = new Item(`sliced-${s.name}`, s.container)
- out({ action: "active", inputs: [s], outputs: [o, two ? o : null], tile: "deep-fryer", duration: 8 })
+function deep_fry(s, duration = 10) {
+ const o = new Item(`deep-fried-${s.name}`, s.container)
+ out({ action: "passive", duration, revert_duration: duration * 2, tile: "deep-fryer", inputs: [s], outputs: [o] })
+ out({ action: "passive", duration: duration / 2, revert_duration: duration / 3, tile: "deep-fryer", inputs: [o], outputs: [new Item("burned", BA)], warn: true })
return o
}
function cook(s, duration = 20) {
@@ -284,7 +286,7 @@ edible(
// edible(combine(PL, cook(rice.tr(POT)), cut(mushroom), cut(tomato)).as("rice-bowl"))
// Steak
-const french_fries = deep_fry(cut(potato)).as("french-fries");
+const french_fries = deep_fry(cut(potato).tr(BA)).as("french-fries");
const bun = either(bake(dough).as("bun"), crate("bun"))
edible(
bun.tr(PL),