Core/Entities: Update health bonus from stamina to use DBC values
This commit is contained in:
1 parent
622f68fd33
commit
74620494b9
2 files changed
+3
-7
No files matched your search
@@ -225,12 +225,8 @@ void Player::UpdateArmor()
|
||||
|
||||
float Player::GetHealthBonusFromStamina()
|
||||
{
|
||||
float stamina = GetStat(STAT_STAMINA);
|
||||
|
||||
float baseStam = stamina < 20 ? stamina : 20;
|
||||
float moreStam = stamina - baseStam;
|
||||
|
||||
return baseStam + (moreStam*10.0f);
|
||||
gtOCTHpPerStaminaEntry const* hpBase = sGtOCTHpPerStaminaStore.LookupEntry((getClass() - 1) * GT_MAX_LEVEL + getLevel() - 1);
|
||||
return GetStat(STAT_STAMINA) * hpBase->ratio;
|
||||
}
|
||||
|
||||
float Player::GetManaBonusFromIntellect()
|
||||
|
||||
Reference in new issue
Block a user