fix: enhance durability visibility
authorxangelo <me@xangelo.ca>
Wed, 23 Oct 2024 16:25:11 +0000 (12:25 -0400)
committerxangelo <me@xangelo.ca>
Wed, 23 Oct 2024 16:25:11 +0000 (12:25 -0400)
commit830ff078b2cb8fdeeae0c0b4a97c3c6794e41c14
treec605ff09144710d109838deddf041240fba8e893
parent5de7a605c8ecd1ea93a655d8293417711d7c9be7
fix: enhance durability visibility

Durability used to be present as a progress bar on the item, but made
it hard to view durability on equipped items.

Durability is now present in the title attribute, and there's a visual
gradient applied to the items to denote how "damaged" it is
migrations/20241021184333_equipment-exp.ts [new file with mode: 0644]
public/assets/css/game.css
src/server/inventory.ts
src/server/views/inventory.ts
src/shared/equipped.ts
src/shared/inventory.ts
src/shared/utils.ts [new file with mode: 0644]