diff options
author | metamuffin <metamuffin@disroot.org> | 2024-06-24 19:00:46 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-06-24 19:00:46 +0200 |
commit | 2d2dbe19a315abfc140b1b815442cdd56eb2ebd1 (patch) | |
tree | 948d3a3be83bbbece35d3023ea56ce3a60b89a3e | |
parent | 06b6eac1c0aa1bcd09124e4475003199af2255e9 (diff) | |
download | hurrycurry-2d2dbe19a315abfc140b1b815442cdd56eb2ebd1.tar hurrycurry-2d2dbe19a315abfc140b1b815442cdd56eb2ebd1.tar.bz2 hurrycurry-2d2dbe19a315abfc140b1b815442cdd56eb2ebd1.tar.zst |
regression with food processor rename
-rw-r--r-- | data/recipes.ts | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/data/recipes.ts b/data/recipes.ts index 7eb8ef4b..90307e88 100644 --- a/data/recipes.ts +++ b/data/recipes.ts @@ -34,7 +34,7 @@ function auto_trash() { let [i, ic] = get_container(ifull) if (i == "plate") continue if (i == "pot") continue - if (i == "food-processor") continue + if (i == "foodprocessor") continue if (i == "dirty") continue if (ic == "plate") ic = "dirty-plate" out({ @@ -65,9 +65,9 @@ function cook(from: string, to?: string) { out({ action: "passive", duration: 5, revert_duration: 10, tile: "stove", inputs: [o], outputs: ["burned-pot"], warn: true }) } function process(from: string, to?: string) { - const i = from + "-food-processor" - const o = (to ?? (from + "-juice")) + "-food-processor" - out({ action: "instant", inputs: ["food-processor", from], outputs: [i] }) + const i = from + "-foodprocessor" + const o = (to ?? (from + "-juice")) + "-foodprocessor" + out({ action: "instant", inputs: ["foodprocessor", from], outputs: [i] }) out({ action: "active", duration: 3, inputs: [i], outputs: [o] }) } function bake(from: string, to?: string) { @@ -82,7 +82,7 @@ function crate(item: string) { function get_container(ifull: string): [string, string | null] { const iparts = ifull.split("-") const ic = iparts.pop() - if (ic && iparts.length && ["pot", "plate", "food-processor"].includes(ic)) return [iparts.join("-"), ic] + if (ic && iparts.length && ["pot", "plate", "foodprocessor"].includes(ic)) return [iparts.join("-"), ic] return [ifull, null] } @@ -129,11 +129,11 @@ cook("raw-steak", "steak") combine("plate", "steak-pot", "sliced-tomato", "bread") process("flour", "dough") -out({ action: "instant", inputs: ["dough-food-processor"], outputs: ["food-processor", "dough"] }) +out({ action: "instant", inputs: ["dough-foodprocessor"], outputs: ["foodprocessor", "dough"] }) bake("dough", "bread") process("tomato") -combine("pot", "herbs", "tomato-juice-food-processor") +combine("pot", "herbs", "tomato-juice-foodprocessor") cook("herbs-tomato-juice-pot", "tomato-soop") out({ action: "instant", inputs: ["tomato-soop-pot", "plate"], outputs: ["pot", "tomato-soop-plate"] }) |