Minor clean up for HateList

This commit is contained in:
Drajor 2014-06-10 12:31:36 +10:00
parent 9fca5cb86a
commit 2937bdcee5
2 changed files with 1 additions and 16 deletions

View File

@ -40,18 +40,6 @@ HateList::~HateList()
{
}
// neotokyo: added for frenzy support
// checks if target still is in frenzy mode
void HateList::CheckFrenzyHate()
{
auto iterator = list.begin();
while(iterator != list.end())
{
if ((*iterator)->ent->GetHPRatio() >= 20)
(*iterator)->bFrenzy = false;
++iterator;
}
}
void HateList::Wipe()
{
@ -169,8 +157,6 @@ Mob* HateList::GetClosest(Mob *hater) {
return close;
}
// neotokyo: a few comments added, rearranged code for readability
void HateList::Add(Mob *ent, int32 in_hate, int32 in_dam, bool bFrenzy, bool iAddIfNotExist)
{
if(!ent)

View File

@ -54,8 +54,7 @@ public:
Mob *GetDamageTop(Mob *hater);
// used to check if mob is on hatelist
bool IsOnHateList(Mob *);
// used to remove or add frenzy hate
void CheckFrenzyHate();
//Gets the target with the most hate regardless of things like frenzy etc.
Mob* GetMostHate();
// Count 'Summoned' pets on hatelist