Core/Entities: Update health bonus from stamina to use DBC values

This commit is contained in:
Subv
2012-08-18 09:54:44 -05:00
parent 622f68fd33
commit 74620494b9
2 changed files with 3 additions and 7 deletions
+2 -6
View File
@@ -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()