feat: add damage mitigation to armour
authorxangelo <git@xangelo.ca>
Mon, 10 Jul 2023 18:47:12 +0000 (14:47 -0400)
committerxangelo <git@xangelo.ca>
Mon, 10 Jul 2023 18:47:12 +0000 (14:47 -0400)
commitf8156c89ce64745da030d909a0b34b5ddede2075
tree5aae5896a8987fc40d496d867c9b4c6c6453f9e4
parentabf453a2c75d1f6051d60a6bd4d552f6b4652a55
feat: add damage mitigation to armour

Damage mitigation (up to 99%) is now available on every piece of armour.

When you're hit, if that piece of armour has damage mitigation you'll
take that percentage of damage less.

IE: Damage Mitigation = 10% then you'll take 90% of the damage

This should since it feels like armour doesn't really do too much.

Fixes: #3
public/assets/bundle.js
seeds/shop_items.ts
src/client/index.ts
src/server/api.ts
src/server/inventory.ts
src/shared/inventory.ts