mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 06:21:28 +00:00
[Cleanup] Remove IsEntityInFrenzyMode() from hate_list.cpp/hate_list.h (#3352)
# Notes - This is unused.
This commit is contained in:
parent
6bfb8fca2e
commit
b7a1fc6644
@ -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();
|
||||||
|
|||||||
@ -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; }
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user