Improve tools system
This commit is contained in:
@@ -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}`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user