[Cleanup] Remove Evade() from zone/entity.cpp and zone/entity.h (#3394)

# Notes
- This is unused.
This commit is contained in:
Alex King 2023-06-12 16:05:23 -04:00 committed by GitHub
parent 577f61b082
commit 108fc82ee0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 19 deletions

View File

@ -3592,24 +3592,6 @@ void EntityList::HalveAggro(Mob *who)
} }
} }
void EntityList::Evade(Mob *who)
{
uint32 flatval = who->GetLevel() * 13;
int amt = 0;
auto it = npc_list.begin();
while (it != npc_list.end()) {
if (it->second->CastToNPC()->CheckAggro(who)) {
amt = it->second->CastToNPC()->GetHateAmount(who);
amt -= flatval;
if (amt > 0)
it->second->CastToNPC()->SetHateAmountOnEnt(who, amt);
else
it->second->CastToNPC()->SetHateAmountOnEnt(who, 0);
}
++it;
}
}
//removes "targ" from all hate lists, including feigned, in the zone //removes "targ" from all hate lists, including feigned, in the zone
void EntityList::ClearAggro(Mob* targ) void EntityList::ClearAggro(Mob* targ)
{ {

View File

@ -470,7 +470,6 @@ public:
void CorpseFix(Client* c); void CorpseFix(Client* c);
void HalveAggro(Mob* who); void HalveAggro(Mob* who);
void DoubleAggro(Mob* who); void DoubleAggro(Mob* who);
void Evade(Mob *who);
void UpdateHoTT(Mob* target); void UpdateHoTT(Mob* target);
void Process(); void Process();