diff options
Diffstat (limited to 'data')
-rw-r--r-- | data/demands/default.yaml | 35 | ||||
-rw-r--r-- | data/recipes/default.ts | 5 |
2 files changed, 26 insertions, 14 deletions
diff --git a/data/demands/default.yaml b/data/demands/default.yaml index f6be0911..26bbac09 100644 --- a/data/demands/default.yaml +++ b/data/demands/default.yaml @@ -1,26 +1,37 @@ # Undercooked - a game about cooking # Copyright 2024 metamuffin -# +# # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, version 3 of the License only. -# +# # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details. -# +# # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see <https://www.gnu.org/licenses/>. -# -- { from: bread-slice-plate, to: dirty-plate, duration: 10 } -- { from: steak-plate, to: dirty-plate, duration: 10 } -- { from: sliced-tomato-plate, to: dirty-plate, duration: 10 } +# +- { from: sliced-tomato-plate, to: dirty-plate, duration: 10, points: 2 } +- { from: bread-slice-plate, to: dirty-plate, duration: 10, points: 3 } +- { from: steak-plate, to: dirty-plate, duration: 10, points: 4 } -- { from: bread-slice-steak-plate, to: dirty-plate, duration: 15 } -- { from: bread-slice-sliced-tomato-plate, to: dirty-plate, duration: 15 } -- { from: sliced-tomato-steak-plate, to: dirty-plate, duration: 15 } +- { from: bread-slice-steak-plate, to: dirty-plate, duration: 15, points: 6 } +- { + from: bread-slice-sliced-tomato-plate, + to: dirty-plate, + duration: 15, + points: 5, + } +- { from: sliced-tomato-steak-plate, to: dirty-plate, duration: 15, points: 5 } -- { from: bread-slice-sliced-tomato-steak-plate, to: dirty-plate, duration: 20 } +- { + from: bread-slice-sliced-tomato-steak-plate, + to: dirty-plate, + duration: 20, + points: 10, + } -- { from: tomato-soup-plate, to: dirty-plate, duration: 20 } +- { from: tomato-soup-plate, to: dirty-plate, duration: 10, points: 5 } +- { from: bread, duration: 0, points: 4 } 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] { |