diff options
Diffstat (limited to 'data/recipes.ts')
-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], }) |