diff options
author | metamuffin <metamuffin@disroot.org> | 2024-06-29 16:10:07 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-06-29 16:10:07 +0200 |
commit | 58f4ab0b26948bec13ba853c90298271e472169f (patch) | |
tree | 9fa6e4443addf067310ff9ba868ec72b9e237637 /data/recipes/default.ts | |
parent | b0042dce860406431f2e486112b14987c665f6a8 (diff) | |
download | hurrycurry-58f4ab0b26948bec13ba853c90298271e472169f.tar hurrycurry-58f4ab0b26948bec13ba853c90298271e472169f.tar.bz2 hurrycurry-58f4ab0b26948bec13ba853c90298271e472169f.tar.zst |
implement points
Diffstat (limited to 'data/recipes/default.ts')
-rw-r--r-- | data/recipes/default.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/data/recipes/default.ts b/data/recipes/default.ts index dd662081..db106e54 100644 --- a/data/recipes/default.ts +++ b/data/recipes/default.ts @@ -25,7 +25,8 @@ export interface Recipe { action: "instant" | "passive" | "active" | "demand" duration?: number revert_duration?: number, - warn?: boolean + warn?: boolean, + points?: number, } export const all_items = new Set<string>() @@ -76,7 +77,7 @@ export function bake(from: string, to?: string) { out({ action: "passive", duration: 15, revert_duration: 20, tile: "oven", inputs: [o], outputs: ["burned"], warn: true }) } export function crate(item: string) { - out({ action: "instant", tile: item + "-crate", inputs: [], outputs: [item], }) + out({ action: "instant", tile: item + "-crate", inputs: [], outputs: [item], points: -1 }) } export function get_container(ifull: string): [string, string | null] { |