mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-22 18:15:31 +01:00
Core/Players: no longer exclude base stamina and base intellect from health and mana calculations
This commit is contained in:
@@ -281,20 +281,14 @@ float Player::GetHealthBonusFromStamina() const
|
||||
{
|
||||
float ratio = 10.0f;
|
||||
float stamina = GetStat(STAT_STAMINA);
|
||||
float baseStam = std::min(20.0f, stamina);
|
||||
float moreStam = stamina - baseStam;
|
||||
|
||||
return moreStam * ratio;
|
||||
return stamina * ratio;
|
||||
}
|
||||
|
||||
float Player::GetManaBonusFromIntellect() const
|
||||
{
|
||||
float intellect = GetStat(STAT_INTELLECT);
|
||||
|
||||
float baseInt = std::min(20.0f, intellect);
|
||||
float moreInt = intellect - baseInt;
|
||||
|
||||
return baseInt + (moreInt * 15.0f);
|
||||
return intellect * 15.0f;
|
||||
}
|
||||
|
||||
void Player::UpdateMaxHealth()
|
||||
|
||||
Reference in New Issue
Block a user