Change curios to always show on inventory
This commit is contained in:
@@ -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 () => {
|
||||
|
||||
Reference in New Issue
Block a user