Change curios to always show on inventory

This commit is contained in:
2026-10-01 16:35:41 -03:00
parent deba36260e
commit 3dc7d2adee
24 changed files with 244 additions and 159 deletions
+3 -1
View File
@@ -199,6 +199,8 @@ Deno.test("a smithing table upgrades a wooden pickaxe with 5 stone, using up exa
const pickaxe = slot_of(messages, "bworld:wood_pickaxe");
const stone = slot_of(messages, "bworld:stone");
// mods' own, like the player's curios
const containers = t.game.containers.size;
t.send(1, { type: "use_block", x: 1, y: 100, z: 0, face: "top" });
const opened = opened_menu(t.take(1));
assertEquals(opened.slots.slice(0, 4).map((s: Msg) => s.output ?? false), [false, false, false, true]);
@@ -225,7 +227,7 @@ Deno.test("a smithing table upgrades a wooden pickaxe with 5 stone, using up exa
inventory.sort((a: Msg, b: Msg) => a.id.localeCompare(b.id)),
[{ id: "bworld:stone", count: 2 }, { id: "bworld:stone_pickaxe", count: 1 }],
);
assertEquals(t.game.containers.size, 0);
assertEquals(t.game.containers.size, containers, "its slots are gone");
});
Deno.test("a smithing result can't be taken once its inputs are gone, even before it updates", async () => {