mirror of
https://github.com/EQEmu/Server.git
synced 2026-11-28 17:42:17 +00:00
Add NPC Max Aggro Distance to zone table
This commit is contained in:
1 parent
ec40b3dc69
commit
7836d020ce
6 files changed
+9
-4
No files matched your search
+1
-1
@@ -1194,7 +1194,7 @@ void Mob::AI_Process() {
|
||||
// NPCs will forget people after 10 mins of not interacting with them or out of range
|
||||
// both of these maybe zone specific, hardcoded for now
|
||||
if (hate_list_cleanup_timer.Check()) {
|
||||
hate_list.RemoveStaleEntries(600000, 600.0f);
|
||||
hate_list.RemoveStaleEntries(600000, static_cast<float>(zone->newzone_data.NPCAggroMaxDist));
|
||||
if (hate_list.IsHateListEmpty()) {
|
||||
AI_Event_NoLongerEngaged();
|
||||
zone->DelAggroMob();
|
||||
|
||||
Reference in new issue
Block a user