Add hatelist removal for far distances and time

This commit is contained in:
Michael Cook (mackal)
2018-01-18 15:44:51 -05:00
parent 7adc93d806
commit d8bbb428d8
3 changed files with 36 additions and 0 deletions
+2
View File
@@ -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: