mirror of
https://github.com/EQEmu/Server.git
synced 2026-09-03 17:46:36 +00:00
Add hatelist removal for far distances and time
This commit is contained in:
@@ -31,6 +31,7 @@ struct struct_HateList
|
||||
int32 hatelist_damage;
|
||||
uint32 stored_hate_amount;
|
||||
bool is_entity_frenzy;
|
||||
uint32 last_modified; // we need to remove this if it gets higher than 10 mins
|
||||
};
|
||||
|
||||
class HateList
|
||||
@@ -65,6 +66,7 @@ public:
|
||||
void SetHateOwner(Mob *new_hate_owner) { hate_owner = new_hate_owner; }
|
||||
void SpellCast(Mob *caster, uint32 spell_id, float range, Mob *ae_center = nullptr);
|
||||
void WipeHateList();
|
||||
void RemoveStaleEntries(int time_ms, float dist);
|
||||
|
||||
|
||||
protected:
|
||||
|
||||
Reference in New Issue
Block a user