Make durability work like sunlit valley

This commit is contained in:
2026-09-29 18:00:32 -03:00
parent 8fe581ea93
commit f76cf2bf38
30 changed files with 70 additions and 28 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ export function item_tooltip(item: ItemStack): TooltipLine[] {
lines.push({ text: `Restores ${info.food.nutrition} hunger`, color: FOOD_COLOR });
}
if (info?.tool) {
lines.push({ text: `Durability: ${info.tool.durability}`, color: LORE_COLOR });
lines.push({ text: `Durability: ${item.durability()} / ${info.tool.durability}`, color: LORE_COLOR });
}
const static_lore = info?.lore;
for (const lore of [static_lore, item.lore]) {