mirror of
https://github.com/EQEmu/Server.git
synced 2026-11-24 22:17:16 +00:00
Change NPCs to have their attack delay set in DB
This gives us a much more straight forward way of setting mob attack delay with respect to live. The attack_delay column is in 10ths of seconds, just like weapons are The attack_speed is left for references for now.
This commit is contained in:
1 parent
fa1e33783a
commit
ed4e762f03
7 files changed
+14
-5
No files matched your search
@@ -248,6 +248,7 @@ NPC::NPC(const NPCType* d, Spawn2* in_respawn, float x, float y, float z, float
|
||||
delaytimer = false;
|
||||
combat_event = false;
|
||||
attack_speed = d->attack_speed;
|
||||
attack_delay = d->attack_delay;
|
||||
slow_mitigation = d->slow_mitigation;
|
||||
|
||||
EntityList::RemoveNumbers(name);
|
||||
|
||||
Reference in new issue
Block a user