diff options
-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( |