mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-15 12:31:31 +00:00
[Cleanup] Remove GetClassHPFactor() from zone/client_mods.cpp and zone/client.h (#3313)
# Notes - This is unused.
This commit is contained in:
parent
b19d3ac8a2
commit
baa824d8fb
@ -1719,7 +1719,6 @@ private:
|
|||||||
int64 CalcHPRegen(bool bCombat = false);
|
int64 CalcHPRegen(bool bCombat = false);
|
||||||
int64 CalcManaRegen(bool bCombat = false);
|
int64 CalcManaRegen(bool bCombat = false);
|
||||||
int64 CalcBaseManaRegen();
|
int64 CalcBaseManaRegen();
|
||||||
uint64 GetClassHPFactor();
|
|
||||||
void DoHPRegen();
|
void DoHPRegen();
|
||||||
void DoManaRegen();
|
void DoManaRegen();
|
||||||
void DoStaminaHungerUpdate();
|
void DoStaminaHungerUpdate();
|
||||||
|
|||||||
@ -506,50 +506,6 @@ int64 Client::CalcBaseHP()
|
|||||||
return base_hp;
|
return base_hp;
|
||||||
}
|
}
|
||||||
|
|
||||||
// This is for calculating Base HPs + STA bonus for SoD or later clients.
|
|
||||||
uint64 Client::GetClassHPFactor()
|
|
||||||
{
|
|
||||||
int factor;
|
|
||||||
// Note: Base HP factor under level 41 is equal to factor / 12, and from level 41 to 80 is factor / 6.
|
|
||||||
// Base HP over level 80 is factor / 10
|
|
||||||
// HP per STA point per level is factor / 30 for level 80+
|
|
||||||
// HP per STA under level 40 is the level 80 HP Per STA / 120, and for over 40 it is / 60.
|
|
||||||
switch (GetClass()) {
|
|
||||||
case DRUID:
|
|
||||||
case ENCHANTER:
|
|
||||||
case NECROMANCER:
|
|
||||||
case MAGICIAN:
|
|
||||||
case WIZARD:
|
|
||||||
factor = 240;
|
|
||||||
break;
|
|
||||||
case BEASTLORD:
|
|
||||||
case BERSERKER:
|
|
||||||
case MONK:
|
|
||||||
case ROGUE:
|
|
||||||
case SHAMAN:
|
|
||||||
factor = 255;
|
|
||||||
break;
|
|
||||||
case BARD:
|
|
||||||
case CLERIC:
|
|
||||||
factor = 264;
|
|
||||||
break;
|
|
||||||
case SHADOWKNIGHT:
|
|
||||||
case PALADIN:
|
|
||||||
factor = 288;
|
|
||||||
break;
|
|
||||||
case RANGER:
|
|
||||||
factor = 276;
|
|
||||||
break;
|
|
||||||
case WARRIOR:
|
|
||||||
factor = 300;
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
factor = 240;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
return factor;
|
|
||||||
}
|
|
||||||
|
|
||||||
// This should return the combined AC of all the items the player is wearing.
|
// This should return the combined AC of all the items the player is wearing.
|
||||||
int32 Client::GetRawItemAC()
|
int32 Client::GetRawItemAC()
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user