Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
guidobotta committed Jul 21, 2020
2 parents 2721536 + 8efddda commit a143eb1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server_src/Entities/PlayerNet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -223,12 +223,14 @@ int PlayerNet::getLevel() { return level; }
void PlayerNet::updateMaxHp() {
maxHp = equation::playerMaxHp(getConstitution(), playerClass->getHpFactor(),
playerRace->getHpFactor(), level);
listener.lifeUpdate(id, hp, maxHp);
}

void PlayerNet::updateMaxMana() {
maxMana =
equation::playerMaxMana(getIntelligence(), playerClass->getManaFactor(),
playerRace->getManaFactor(), level);
listener.manaUpdate(id, mana, maxMana);
}

float PlayerNet::getConstitution() {
Expand Down

0 comments on commit a143eb1

Please sign in to comment.