BibliothecaDAO / realms-contracts

Realms Monorepo for Ethereum contracts and Starknet contracts.
https://bibliothecadao.xyz/
MIT License
87 stars 33 forks source link

Loot Survive | Provide Use Case for Vitality #306

Closed loothero closed 1 year ago

loothero commented 1 year ago

Make Vitality increase the adventurers health by 10 points. Performing the upgrade should also increase the adventurers current health by 10xp, serving as a small potion

starknetdev commented 1 year ago

Added logic for increasing health based on vitality upgrade with working tests.

_add_health now also checks health cap based on vitality rather than 100.

https://github.com/BibliothecaDAO/realms-contracts/pull/303/commits/0bc469041dacd84f5642e547b3aad708c4f1d05c