diff options
Diffstat (limited to 'data/recipes.ts')
| -rw-r--r-- | data/recipes.ts | 4 | 
1 files changed, 3 insertions, 1 deletions
| diff --git a/data/recipes.ts b/data/recipes.ts index 5d267404..fcad1bb6 100644 --- a/data/recipes.ts +++ b/data/recipes.ts @@ -31,7 +31,9 @@ function auto_trash() {  function out(r: Recipe) {      r.inputs.forEach(i => i ? all_items.add(i) : void 0)      r.outputs.forEach(i => i ? all_items.add(i) : void 0) -    console.log(`- { tile: ${r.tile ?? null}, inputs: ${JSON.stringify(r.inputs.filter(e => e))}, outputs: ${JSON.stringify(r.outputs.filter(e => e))}, action: !${r.action + " " + (r.duration ?? "")}, warn: ${r.warn ?? false} }`); +    r.inputs = r.inputs.filter(e => e) +    r.outputs = r.outputs.filter(e => e) +    console.log(`- ${JSON.stringify(r).replaceAll("\"active\"", "!active").replaceAll("\"passive\"", "!passive").replaceAll("\"instant\"", "!instant")}`);  }  function cut(from: string, to?: string) { | 
