Skip to content

Commit

Permalink
[Cleanup] Remove unused code in zone/pets.cpp (#3310)
Browse files Browse the repository at this point in the history
# Notes
- This code is unused.
  • Loading branch information
Kinglykrab authored Apr 30, 2023
1 parent 291997d commit 7eff6ad
Showing 1 changed file with 0 additions and 97 deletions.
97 changes: 0 additions & 97 deletions zone/pets.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,103 +75,6 @@ void GetRandPetName(char *name)
strn0cpy(name, temp.c_str(), 64);
}

//not used anymore
/*int CalcPetHp(int levelb, int classb, int STA)
{
int multiplier = 0;
int base_hp = 0;
switch(classb) {
case WARRIOR:{
if (levelb < 20)
multiplier = 22;
else if (levelb < 30)
multiplier = 23;
else if (levelb < 40)
multiplier = 25;
else if (levelb < 53)
multiplier = 27;
else if (levelb < 57)
multiplier = 28;
else
multiplier = 30;
break;
}
case DRUID:
case CLERIC:
case SHAMAN:{
multiplier = 15;
break;
}
case PALADIN:
case SHADOWKNIGHT:{
if (levelb < 35)
multiplier = 21;
else if (levelb < 45)
multiplier = 22;
else if (levelb < 51)
multiplier = 23;
else if (levelb < 56)
multiplier = 24;
else if (levelb < 60)
multiplier = 25;
else
multiplier = 26;
break;
}
case MONK:
case BARD:
case ROGUE:
case BEASTLORD:{
if (levelb < 51)
multiplier = 18;
else if (levelb < 58)
multiplier = 19;
else
multiplier = 20;
break;
}
case RANGER:{
if (levelb < 58)
multiplier = 20;
else
multiplier = 21;
break;
}
case MAGICIAN:
case WIZARD:
case NECROMANCER:
case ENCHANTER:{
multiplier = 12;
break;
}
default:{
if (levelb < 35)
multiplier = 21;
else if (levelb < 45)
multiplier = 22;
else if (levelb < 51)
multiplier = 23;
else if (levelb < 56)
multiplier = 24;
else if (levelb < 60)
multiplier = 25;
else
multiplier = 26;
break;
}
}
if (multiplier == 0)
{
LogFile->write(EQEMuLog::Error, "Multiplier == 0 in CalcPetHp,using Generic....");;
multiplier=12;
}
base_hp = 5 + (multiplier*levelb) + ((multiplier*levelb*STA) + 1)/300;
return base_hp;
}
*/

void Mob::MakePet(uint16 spell_id, const char* pettype, const char *petname) {
// petpower of -1 is used to get the petpower based on whichever focus is currently
// equipped. This should replicate the old functionality for the most part.
Expand Down

0 comments on commit 7eff6ad

Please sign in to comment.