diff options
author | metamuffin <metamuffin@disroot.org> | 2024-06-23 19:51:08 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-06-23 19:51:08 +0200 |
commit | 44a431aca295af333ede40eeed8115ed15bed222 (patch) | |
tree | 28f345df4d69a021188f780ad641de3944de9236 /data | |
parent | b972ea72c09a81187ad2e4f55711da6f8e9fdaff (diff) | |
download | hurrycurry-44a431aca295af333ede40eeed8115ed15bed222.tar hurrycurry-44a431aca295af333ede40eeed8115ed15bed222.tar.bz2 hurrycurry-44a431aca295af333ede40eeed8115ed15bed222.tar.zst |
reapply reverting recipes
Diffstat (limited to 'data')
-rw-r--r-- | data/recipes.ts | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/data/recipes.ts b/data/recipes.ts index e7a90047..ea2706ed 100644 --- a/data/recipes.ts +++ b/data/recipes.ts @@ -24,6 +24,7 @@ interface Recipe { outputs: (string | null)[], action: "instant" | "passive" | "active" duration?: number + revert_duration?: number, warn?: boolean } @@ -60,8 +61,8 @@ function cook(from: string, to?: string) { const i = from.endsWith("-pot") ? from : from + "-pot" const o = (to ?? ("cooked-" + from)) + "-pot" if (!from.endsWith("-pot")) out({ action: "instant", inputs: ["pot", from], outputs: [i] }) - out({ action: "passive", duration: 20, tile: "stove", inputs: [i], outputs: [o] }) - out({ action: "passive", duration: 5, tile: "stove", inputs: [o], outputs: ["burned-pot"], warn: true }) + out({ action: "passive", duration: 20, revert_duration: 40, tile: "stove", inputs: [i], outputs: [o] }) + out({ action: "passive", duration: 5, revert_duration: 10, tile: "stove", inputs: [o], outputs: ["burned-pot"], warn: true }) } function mix(from: string, to?: string) { const i = from + "-mixer" @@ -72,7 +73,7 @@ function mix(from: string, to?: string) { function bake(from: string, to?: string) { const o = (to ?? ("cooked-" + from)) out({ action: "passive", duration: 25, tile: "oven", inputs: [from], outputs: [o] }) - out({ action: "passive", duration: 15, tile: "oven", inputs: [o], outputs: ["burned"], warn: true }) + out({ action: "passive", duration: 15, revert_duration: 20, tile: "oven", inputs: [o], outputs: ["burned"], warn: true }) } function crate(item: string) { out({ action: "instant", tile: item + "-crate", inputs: [], outputs: [item], }) |