Juicer recipes register
This commit is contained in:
@@ -175,8 +175,9 @@ Deno.test("a crab pot's recipes are what each bait catches in fresh and salt wat
|
||||
});
|
||||
|
||||
Deno.test("each juiceable item has a juicing recipe that presses it into its own juice", async () => {
|
||||
await test_game("mods");
|
||||
const index = new RecipeIndex(client_ctx());
|
||||
// registered by the base game's shared script, see mods/bworld/scripts/juicing.ts
|
||||
const { game } = await test_game("mods");
|
||||
const index = new RecipeIndex(client_ctx(game.recipes.all));
|
||||
|
||||
// a strawberry's uses include the juicer pressing it into strawberry juice, shown in a fluid slot
|
||||
const juicing = index.find(item("bworld:strawberry"), "uses").find((found) => found.category.title === "Juicing")!;
|
||||
|
||||
Reference in New Issue
Block a user