[Cleanup] Remove IsEntityInFrenzyMode() from hate_list.cpp/hate_list.h (#3352)

# Notes
- This is unused.
This commit is contained in:
Alex King 2023-05-17 08:58:27 -04:00 committed by GitHub
parent 6bfb8fca2e
commit b7a1fc6644
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 14 deletions

View File

@ -42,19 +42,6 @@ HateList::~HateList()
{ {
} }
// added for frenzy support
// checks if target still is in frenzy mode
void HateList::IsEntityInFrenzyMode()
{
auto iterator = list.begin();
while (iterator != list.end())
{
if ((*iterator)->entity_on_hatelist->GetHPRatio() >= 20)
(*iterator)->is_entity_frenzy = false;
++iterator;
}
}
void HateList::WipeHateList() void HateList::WipeHateList()
{ {
auto iterator = list.begin(); auto iterator = list.begin();

View File

@ -84,7 +84,6 @@ public:
bool add_to_hate_list_if_not_exist = true bool add_to_hate_list_if_not_exist = true
); );
void DoFactionHits(int64 npc_faction_level_id, int32 faction_id, int32 faction_value); void DoFactionHits(int64 npc_faction_level_id, int32 faction_id, int32 faction_value);
void IsEntityInFrenzyMode();
void PrintHateListToClient(Client *c); void PrintHateListToClient(Client *c);
void SetHateAmountOnEnt(Mob *other, int64 in_hate, uint64 in_damage); void SetHateAmountOnEnt(Mob *other, int64 in_hate, uint64 in_damage);
void SetHateOwner(Mob *new_hate_owner) { hate_owner = new_hate_owner; } void SetHateOwner(Mob *new_hate_owner) { hate_owner = new_hate_owner; }