Juicer recipes register

This commit is contained in:
2026-10-30 22:35:44 -03:00
parent 43521b3675
commit 4717e45a9a
9 changed files with 171 additions and 42 deletions
+3 -2
View File
@@ -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")!;