From 62e04ff78fcacab4ab3087aff986428d9b155d3d Mon Sep 17 00:00:00 2001 From: metamuffin Date: Thu, 9 Oct 2025 21:08:27 +0200 Subject: Remove unsliced bun from demands, faster bun cutting --- data/recipes/default.js | 22 +++++++++++----------- 1 file 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 -- cgit v1.3