Juices on the mechanical press !

This commit is contained in:
2026-10-31 00:03:03 -03:00
parent 3734f5707a
commit 23d02c5229
11 changed files with 381 additions and 62 deletions
+4 -3
View File
@@ -35,10 +35,11 @@ export function outputs(recipe: Recipe): Ingredient[] {
}
}
// the fluids a recipe makes and takes, from its "fluid_results" and "fluid_ingredients", which the viewer's own recipe
// types use, like juicing
// the fluids a recipe makes and takes, from its "fluid_results" and "fluid_ingredients", like juicing, and the
// { fluid, amount } among its "results", like create's
export function fluid_outputs(recipe: Recipe): FluidAmount[] {
return recipe.fluid_results ?? [];
const among = Array.isArray(recipe.results) ? recipe.results.filter((result: Recipe) => result?.fluid) : [];
return [...recipe.fluid_results ?? [], ...among];
}
export function fluid_inputs(recipe: Recipe): FluidAmount[] {