diff options
author | metamuffin <metamuffin@disroot.org> | 2024-09-30 19:41:49 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-09-30 19:41:49 +0200 |
commit | f717628e0cabd980a92df926c35e162df0f8ad2d (patch) | |
tree | 8d7ad5eeb8ee6e825eb58416d0fcbc8c19837fda /data | |
parent | 4e109e806c3c177f10b842865a21e689c0f5a10d (diff) | |
download | hurrycurry-f717628e0cabd980a92df926c35e162df0f8ad2d.tar hurrycurry-f717628e0cabd980a92df926c35e162df0f8ad2d.tar.bz2 hurrycurry-f717628e0cabd980a92df926c35e162df0f8ad2d.tar.zst |
remove recipe mjs feature usages
Diffstat (limited to 'data')
-rw-r--r-- | data/recipes/default.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/data/recipes/default.js b/data/recipes/default.js index c1c72714..350e701e 100644 --- a/data/recipes/default.js +++ b/data/recipes/default.js @@ -18,7 +18,7 @@ //? Is this a good idea? Probably not. -// export interface Recipe { +// interface Recipe { // tile?: string, // inputs: (Item | null | undefined)[], // outputs: (Item | null | undefined)[], @@ -31,14 +31,14 @@ const all_items = new Set() const all_recipes = new Set() -export function out(r) { +function out(r) { r.inputs.forEach(i => i ? all_items.add(i) : void 0) r.outputs.forEach(i => i ? all_items.add(i) : void 0) r.inputs = r.inputs.filter(e => e) r.outputs = r.outputs.filter(e => e) all_recipes.add(r); } -export function finish() { +function finish() { const k = new Set() for (const r of all_recipes) { let s = `- action: !${r.action}\n` @@ -270,7 +270,7 @@ edible(freeze(strawberry_shake).as("strawberry-icecream").tr(PL)) const rice_flour = process(rice.tr(FP)).as("rice-flour") const mochi_dough = cook(rice_flour.tr(POT), 5).as("mochi-dough") const strawberry_mochi = container_add(strawberry, mochi_dough).as("strawberry-mochi") -edible(strawberry_mochi) +edible(strawberry_mochi.tr(PL)) // Drinks edible( |