mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-15 12:31:31 +00:00
Add GetAttackDelay to lua's NPC API
This commit is contained in:
parent
17c45c8d36
commit
2f129da08a
@ -428,6 +428,11 @@ float Lua_NPC::GetAttackSpeed() {
|
|||||||
return self->GetAttackSpeed();
|
return self->GetAttackSpeed();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int Lua_NPC::GetAttackDelay() {
|
||||||
|
Lua_Safe_Call_Int();
|
||||||
|
return self->GetAttackDelay();
|
||||||
|
}
|
||||||
|
|
||||||
int Lua_NPC::GetAccuracyRating() {
|
int Lua_NPC::GetAccuracyRating() {
|
||||||
Lua_Safe_Call_Int();
|
Lua_Safe_Call_Int();
|
||||||
return self->GetAccuracyRating();
|
return self->GetAccuracyRating();
|
||||||
@ -550,6 +555,7 @@ luabind::scope lua_register_npc() {
|
|||||||
.def("GetSpellFocusHeal", (void(Lua_NPC::*)(int))&Lua_NPC::GetSpellFocusHeal)
|
.def("GetSpellFocusHeal", (void(Lua_NPC::*)(int))&Lua_NPC::GetSpellFocusHeal)
|
||||||
.def("GetSlowMitigation", (int(Lua_NPC::*)(void))&Lua_NPC::GetSlowMitigation)
|
.def("GetSlowMitigation", (int(Lua_NPC::*)(void))&Lua_NPC::GetSlowMitigation)
|
||||||
.def("GetAttackSpeed", (float(Lua_NPC::*)(void))&Lua_NPC::GetAttackSpeed)
|
.def("GetAttackSpeed", (float(Lua_NPC::*)(void))&Lua_NPC::GetAttackSpeed)
|
||||||
|
.def("GetAttackDelay", (int(Lua_NPC::*)(void))&Lua_NPC::GetAttackDelay)
|
||||||
.def("GetAccuracyRating", (int(Lua_NPC::*)(void))&Lua_NPC::GetAccuracyRating)
|
.def("GetAccuracyRating", (int(Lua_NPC::*)(void))&Lua_NPC::GetAccuracyRating)
|
||||||
.def("GetSpawnKillCount", (int(Lua_NPC::*)(void))&Lua_NPC::GetSpawnKillCount)
|
.def("GetSpawnKillCount", (int(Lua_NPC::*)(void))&Lua_NPC::GetSpawnKillCount)
|
||||||
.def("GetScore", (int(Lua_NPC::*)(void))&Lua_NPC::GetScore)
|
.def("GetScore", (int(Lua_NPC::*)(void))&Lua_NPC::GetScore)
|
||||||
|
|||||||
@ -111,6 +111,7 @@ public:
|
|||||||
int GetSpellFocusHeal();
|
int GetSpellFocusHeal();
|
||||||
float GetSlowMitigation();
|
float GetSlowMitigation();
|
||||||
float GetAttackSpeed();
|
float GetAttackSpeed();
|
||||||
|
int GetAttackDelay();
|
||||||
int GetAccuracyRating();
|
int GetAccuracyRating();
|
||||||
int GetSpawnKillCount();
|
int GetSpawnKillCount();
|
||||||
int GetScore();
|
int GetScore();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user