aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2025-10-09 21:08:27 +0200
committermetamuffin <metamuffin@disroot.org>2025-10-09 21:08:30 +0200
commit62e04ff78fcacab4ab3087aff986428d9b155d3d (patch)
tree3d67678d060b07f38bc7ca086a9cf0089f4ca511
parent45c771e0ebbc08e6d9021e77bcd116fcb8079134 (diff)
downloadhurrycurry-62e04ff78fcacab4ab3087aff986428d9b155d3d.tar
hurrycurry-62e04ff78fcacab4ab3087aff986428d9b155d3d.tar.bz2
hurrycurry-62e04ff78fcacab4ab3087aff986428d9b155d3d.tar.zst
Remove unsliced bun from demands, faster bun cutting
-rw-r--r--data/recipes/default.js22
1 files changed, 11 insertions, 11 deletions
diff --git a/data/recipes/default.js b/data/recipes/default.js
index c298296a..701dccef 100644
--- a/data/recipes/default.js
+++ b/data/recipes/default.js
@@ -128,9 +128,9 @@ function crate(s) {
out({ action: "instant", inputs: [item], outputs: [], tile: `${s}-crate`, points: 1 })
return item
}
-function cut(s, two) {
+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: 2 })
+ out({ action: "active", inputs: [s], outputs: [o, two ? o : null], tile: "cutting-board", duration })
return o
}
function roll(s, two) {
@@ -267,9 +267,8 @@ edible("pizza",
const french_fries = deep_fry(cut(potato).tr(BA)).as("french-fries");
const bun = either(bake(dough).as("bun"), crate("bun"))
edible("steak",
- group_hidden(bun.tr(PL)),
group_hidden(french_fries.tr(PL)),
- combine(PL, sear(steak), bun),
+ combine(PL, sear(steak)),
combine(PL, sear(steak), french_fries),
// combine(PL, sear(steak), cook(potato.tr(POT))),
// combine(PL, sear(steak), sear(cut(mushroom))),
@@ -284,14 +283,15 @@ edible("salad",
)
// Burger
+const sliced_bun = cut(bun, false, 1)
edible("burger",
- combine(PL, cut(bun), sear(patty), cut(tomato), cut(lettuce)),
- combine(PL, cut(bun), sear(patty), cut(cheese), cut(tomato)),
- group_hidden(combine(PL, cut(bun), sear(patty), cut(cheese))),
- group_hidden(combine(PL, cut(bun), sear(patty), cut(cheese), cut(lettuce))),
- group_hidden(combine(PL, cut(bun), cut(cheese), cut(lettuce), cut(tomato))),
- group_hidden(combine(PL, cut(bun), cut(lettuce), cut(tomato))),
- group_hidden(combine(PL, cut(bun), cut(fish)))
+ combine(PL, sliced_bun, sear(patty), cut(tomato), cut(lettuce)),
+ combine(PL, sliced_bun, sear(patty), cut(cheese), cut(tomato)),
+ group_hidden(combine(PL, sliced_bun, sear(patty), cut(cheese))),
+ group_hidden(combine(PL, sliced_bun, sear(patty), cut(cheese), cut(lettuce))),
+ group_hidden(combine(PL, sliced_bun, cut(cheese), cut(lettuce), cut(tomato))),
+ group_hidden(combine(PL, sliced_bun, cut(lettuce), cut(tomato))),
+ group_hidden(combine(PL, sliced_bun, cut(fish)))
)
// Soup