Juices on the mechanical press !
This commit is contained in:
@@ -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[] {
|
||||
|
||||
Reference in New Issue
Block a user