From b7a1fc66442f94fd2cf5ba109237c96cfa7eb355 Mon Sep 17 00:00:00 2001 From: Alex King <89047260+Kinglykrab@users.noreply.github.com> Date: Wed, 17 May 2023 08:58:27 -0400 Subject: [PATCH] [Cleanup] Remove IsEntityInFrenzyMode() from hate_list.cpp/hate_list.h (#3352) # Notes - This is unused. --- zone/hate_list.cpp | 13 ------------- zone/hate_list.h | 1 - 2 files changed, 14 deletions(-) diff --git a/zone/hate_list.cpp b/zone/hate_list.cpp index 18dcd98e0..9ef52765a 100644 --- a/zone/hate_list.cpp +++ b/zone/hate_list.cpp @@ -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() { auto iterator = list.begin(); diff --git a/zone/hate_list.h b/zone/hate_list.h index ff15bbab0..ec1f7d634 100644 --- a/zone/hate_list.h +++ b/zone/hate_list.h @@ -84,7 +84,6 @@ public: bool add_to_hate_list_if_not_exist = true ); void DoFactionHits(int64 npc_faction_level_id, int32 faction_id, int32 faction_value); - void IsEntityInFrenzyMode(); void PrintHateListToClient(Client *c); void SetHateAmountOnEnt(Mob *other, int64 in_hate, uint64 in_damage); void SetHateOwner(Mob *new_hate_owner) { hate_owner = new_hate_owner; }