completed functionality for Armour Points (AP)
authorxangelo <git@xangelo.ca>
Wed, 31 May 2023 20:26:33 +0000 (16:26 -0400)
committerxangelo <git@xangelo.ca>
Wed, 31 May 2023 20:26:33 +0000 (16:26 -0400)
commit22d18b0e49d85b09f522daa003e0b2a77cd702e0
tree084a8a17e4341dbbe7ff106ba3150849a0c59961
parenta8354d80dd35c09daf06c75b7339b341a59e89ea
completed functionality for Armour Points (AP)

Each piece of armour has its own pool of "Armour Points". When you take
damage, the monster targets specific pieces (HEAD | ARMS | CHEST | LEGS)
that correspond with those pieces of armour. The armour takes damage,
depleting its AP.

When that particular piece is out of AP then your HP gets damaged
directly.

As well, monsters have their own AP setting that corresponds ot the same
pieces. When you attack, you get to target the specific item you want.
15 files changed:
migrations/20230531163813_durability-ap.ts [new file with mode: 0644]
migrations/20230531192350_monster-ap.ts [new file with mode: 0644]
public/assets/bundle.js
public/assets/css/game.css
public/index.html
seeds/shop_items.ts
src/client/dom.ts [deleted file]
src/client/index.ts
src/server/api.ts
src/server/inventory.ts
src/server/monster.ts
src/shared/equipped.ts
src/shared/fight.ts
src/shared/inventory.ts
src/shared/monsters.ts