mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-31 06:12:28 +00:00
Merge of kayen's PR as well as some fixes i saw
This commit is contained in:
parent
7831162235
commit
9f64092606
@ -407,8 +407,18 @@ void Lua_NPC::SetSpellFocusHeal(int focus) {
|
|||||||
self->SetSpellFocusHeal(focus);
|
self->SetSpellFocusHeal(focus);
|
||||||
}
|
}
|
||||||
|
|
||||||
float Lua_NPC::GetSlowMitigation() {
|
int Lua_NPC::GetSpellFocusDMG() {
|
||||||
Lua_Safe_Call_Int();
|
Lua_Safe_Call_Int();
|
||||||
|
return self->GetSpellFocusDMG();
|
||||||
|
}
|
||||||
|
|
||||||
|
int Lua_NPC::GetSpellFocusHeal() {
|
||||||
|
Lua_Safe_Call_Int();
|
||||||
|
return self->GetSpellFocusHeal();
|
||||||
|
}
|
||||||
|
|
||||||
|
float Lua_NPC::GetSlowMitigation() {
|
||||||
|
Lua_Safe_Call_Real();
|
||||||
return self->GetSlowMitigation();
|
return self->GetSlowMitigation();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -535,6 +545,8 @@ luabind::scope lua_register_npc() {
|
|||||||
.def("RemoveAISpell", (void(Lua_NPC::*)(int))&Lua_NPC::RemoveAISpell)
|
.def("RemoveAISpell", (void(Lua_NPC::*)(int))&Lua_NPC::RemoveAISpell)
|
||||||
.def("SetSpellFocusDMG", (void(Lua_NPC::*)(int))&Lua_NPC::SetSpellFocusDMG)
|
.def("SetSpellFocusDMG", (void(Lua_NPC::*)(int))&Lua_NPC::SetSpellFocusDMG)
|
||||||
.def("SetSpellFocusHeal", (void(Lua_NPC::*)(int))&Lua_NPC::SetSpellFocusHeal)
|
.def("SetSpellFocusHeal", (void(Lua_NPC::*)(int))&Lua_NPC::SetSpellFocusHeal)
|
||||||
|
.def("GetSpellFocusDMG", (void(Lua_NPC::*)(int))&Lua_NPC::GetSpellFocusDMG)
|
||||||
|
.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("GetAccuracyRating", (int(Lua_NPC::*)(void))&Lua_NPC::GetAccuracyRating)
|
.def("GetAccuracyRating", (int(Lua_NPC::*)(void))&Lua_NPC::GetAccuracyRating)
|
||||||
|
|||||||
@ -107,6 +107,8 @@ public:
|
|||||||
void RemoveAISpell(int spell_id);
|
void RemoveAISpell(int spell_id);
|
||||||
void SetSpellFocusDMG(int focus);
|
void SetSpellFocusDMG(int focus);
|
||||||
void SetSpellFocusHeal(int focus);
|
void SetSpellFocusHeal(int focus);
|
||||||
|
int GetSpellFocusDMG();
|
||||||
|
int GetSpellFocusHeal();
|
||||||
float GetSlowMitigation();
|
float GetSlowMitigation();
|
||||||
float GetAttackSpeed();
|
float GetAttackSpeed();
|
||||||
int GetAccuracyRating();
|
int GetAccuracyRating();
|
||||||
|
|||||||
@ -419,6 +419,56 @@ bool Lua_Spell::GetAllowRest() {
|
|||||||
return self->AllowRest;
|
return self->AllowRest;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool Lua_Spell::GetInCombat() {
|
||||||
|
Lua_Safe_Call_Bool();
|
||||||
|
return self->InCombat;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool Lua_Spell::GetOutOfCombat() {
|
||||||
|
Lua_Safe_Call_Bool();
|
||||||
|
return self->OutofCombat;
|
||||||
|
}
|
||||||
|
|
||||||
|
int Lua_Spell::GetAEMaxTargets() {
|
||||||
|
Lua_Safe_Call_Int();
|
||||||
|
return self->aemaxtargets;
|
||||||
|
}
|
||||||
|
|
||||||
|
int Lua_Spell::GetMaxTargets() {
|
||||||
|
Lua_Safe_Call_Int();
|
||||||
|
return self->maxtargets;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool Lua_Spell::GetPersistDeath() {
|
||||||
|
Lua_Safe_Call_Bool();
|
||||||
|
return self->persistdeath;
|
||||||
|
}
|
||||||
|
|
||||||
|
float Lua_Spell::GetMinDist() {
|
||||||
|
Lua_Safe_Call_Real();
|
||||||
|
return self->min_dist;
|
||||||
|
}
|
||||||
|
|
||||||
|
float Lua_Spell::GetMinDistMod() {
|
||||||
|
Lua_Safe_Call_Real();
|
||||||
|
return self->min_dist_mod;
|
||||||
|
}
|
||||||
|
|
||||||
|
float Lua_Spell::GetMaxDist() {
|
||||||
|
Lua_Safe_Call_Real();
|
||||||
|
return self->max_dist;
|
||||||
|
}
|
||||||
|
|
||||||
|
float Lua_Spell::GetMaxDistMod() {
|
||||||
|
Lua_Safe_Call_Real();
|
||||||
|
return self->max_dist_mod;
|
||||||
|
}
|
||||||
|
|
||||||
|
float Lua_Spell::GetMinRange() {
|
||||||
|
Lua_Safe_Call_Real();
|
||||||
|
return self->min_range;
|
||||||
|
}
|
||||||
|
|
||||||
int Lua_Spell::GetDamageShieldType() {
|
int Lua_Spell::GetDamageShieldType() {
|
||||||
Lua_Safe_Call_Int();
|
Lua_Safe_Call_Int();
|
||||||
return self->DamageShieldType;
|
return self->DamageShieldType;
|
||||||
@ -501,6 +551,16 @@ luabind::scope lua_register_spell() {
|
|||||||
.def("PowerfulFlag", &Lua_Spell::GetPowerfulFlag)
|
.def("PowerfulFlag", &Lua_Spell::GetPowerfulFlag)
|
||||||
.def("CastRestriction", &Lua_Spell::GetCastRestriction)
|
.def("CastRestriction", &Lua_Spell::GetCastRestriction)
|
||||||
.def("AllowRest", &Lua_Spell::GetAllowRest)
|
.def("AllowRest", &Lua_Spell::GetAllowRest)
|
||||||
|
.def("InCombat", &Lua_Spell::GetInCombat)
|
||||||
|
.def("OutOfCombat", &Lua_Spell::GetOutOfCombat)
|
||||||
|
.def("AEMaxTargets", &Lua_Spell::GetAEMaxTargets)
|
||||||
|
.def("MaxTargets", &Lua_Spell::GetMaxTargets)
|
||||||
|
.def("PersistDeath", &Lua_Spell::GetPersistDeath)
|
||||||
|
.def("MinDist", &Lua_Spell::GetMinDist)
|
||||||
|
.def("MinDistMod", &Lua_Spell::GetMinDistMod)
|
||||||
|
.def("MaxDist", &Lua_Spell::GetMaxDist)
|
||||||
|
.def("MaxDistMod", &Lua_Spell::GetMaxDistMod)
|
||||||
|
.def("MinRange", &Lua_Spell::GetMinRange)
|
||||||
.def("DamageShieldType", &Lua_Spell::GetDamageShieldType);
|
.def("DamageShieldType", &Lua_Spell::GetDamageShieldType);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -96,6 +96,16 @@ public:
|
|||||||
int GetPowerfulFlag();
|
int GetPowerfulFlag();
|
||||||
int GetCastRestriction();
|
int GetCastRestriction();
|
||||||
bool GetAllowRest();
|
bool GetAllowRest();
|
||||||
|
bool GetInCombat();
|
||||||
|
bool GetOutOfCombat();
|
||||||
|
int GetAEMaxTargets();
|
||||||
|
int GetMaxTargets();
|
||||||
|
bool GetPersistDeath();
|
||||||
|
float GetMinDist();
|
||||||
|
float GetMinDistMod();
|
||||||
|
float GetMaxDist();
|
||||||
|
float GetMaxDistMod();
|
||||||
|
float GetMinRange();
|
||||||
int GetDamageShieldType();
|
int GetDamageShieldType();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -2340,8 +2340,8 @@ XS(boot_NPC)
|
|||||||
newXSproto(strcpy(buf, "SetSpellFocusHeal"), XS_NPC_SetSpellFocusHeal, file, "$$");
|
newXSproto(strcpy(buf, "SetSpellFocusHeal"), XS_NPC_SetSpellFocusHeal, file, "$$");
|
||||||
newXSproto(strcpy(buf, "GetSpellFocusDMG"), XS_NPC_GetSpellFocusDMG, file, "$");
|
newXSproto(strcpy(buf, "GetSpellFocusDMG"), XS_NPC_GetSpellFocusDMG, file, "$");
|
||||||
newXSproto(strcpy(buf, "GetSpellFocusHeal"), XS_NPC_GetSpellFocusHeal, file, "$");
|
newXSproto(strcpy(buf, "GetSpellFocusHeal"), XS_NPC_GetSpellFocusHeal, file, "$");
|
||||||
newXSproto(strcpy(buf, "GetSlowMitigation"), XS_NPC_GetAttackSpeed, file, "$");
|
newXSproto(strcpy(buf, "GetSlowMitigation"), XS_NPC_GetSlowMitigation, file, "$");
|
||||||
newXSproto(strcpy(buf, "GetAttackSpeed"), XS_NPC_GetSlowMitigation, file, "$");
|
newXSproto(strcpy(buf, "GetAttackSpeed"), XS_NPC_GetAttackSpeed, file, "$");
|
||||||
newXSproto(strcpy(buf, "GetAccuracyRating"), XS_NPC_GetAccuracyRating, file, "$");
|
newXSproto(strcpy(buf, "GetAccuracyRating"), XS_NPC_GetAccuracyRating, file, "$");
|
||||||
newXSproto(strcpy(buf, "GetSpawnKillCount"), XS_NPC_GetSpawnKillCount, file, "$");
|
newXSproto(strcpy(buf, "GetSpawnKillCount"), XS_NPC_GetSpawnKillCount, file, "$");
|
||||||
newXSproto(strcpy(buf, "GetScore"), XS_NPC_GetScore, file, "$");
|
newXSproto(strcpy(buf, "GetScore"), XS_NPC_GetScore, file, "$");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user