feat: add health-potion functionality
authorxangelo <me@xangelo.ca>
Wed, 2 Aug 2023 16:13:33 +0000 (12:13 -0400)
committerxangelo <me@xangelo.ca>
Wed, 2 Aug 2023 16:14:38 +0000 (12:14 -0400)
commit2f13844bc08e9b4ead79d50aeb98563644b16ef2
tree8d0f104530f0cd36320e7ee90726070de38f30b9
parent8f228764e1a1801d9c48e5e2d9668d2050eb66d1
feat: add health-potion functionality

Once the user has health potions, they are displayed on the Inventory
page. In order to do that we had to split up inventory + profile. We
also introduced the new "Modal" system which utilizes the default
`<dialog>` HTML element to display more information about an item.

It also introduces the ability to filter equipment in shops based on
whatever it actually sells. The idea is that you can switch to a tab
that matches what you're trying to buy.
16 files changed:
migrations/20230729184427_items.ts [new file with mode: 0644]
public/assets/bundle.js
public/assets/css/game.css
public/assets/img/icons/items/Minor_Potion_health.png [new file with mode: 0755]
public/index.html
seeds/shop_items.ts
src/client/index.ts
src/client/modal.ts [new file with mode: 0644]
src/events/equipping-items/server.ts
src/events/items/server.ts [new file with mode: 0644]
src/events/server.ts
src/server/api.ts
src/server/items.ts [new file with mode: 0644]
src/shared/items/base.ts [new file with mode: 0644]
src/shared/items/health_potion.ts [new file with mode: 0644]
src/shared/items/index.ts [new file with mode: 0644]