Improve tools system

This commit is contained in:
2026-09-29 17:54:17 -03:00
parent ad7f34a99e
commit 8fe581ea93
39 changed files with 225 additions and 49 deletions
+2 -1
View File
@@ -234,7 +234,8 @@ Deno.test("every tier of pickaxe, axe, shovel and hoe exists and can be made", a
for (const tool of ["pickaxe", "axe", "shovel", "hoe"]) {
const id = `bworld:${tier}_${tool}`;
const item = EverythingRegistry.get<ItemRegistry>("items", id);
assertEquals(item?.tool_type, tool, id);
assertEquals(item?.tool?.type, tool, id);
assert(item!.tool!.durability > 0, id);
assertEquals(item?.texture_id, id);
assert(made.has(id), `nothing makes ${id}`);
}