mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-11 11:48:37 +00:00
[Quest API] Add IsBoat()/IsControllableBoat() to Perl/Lua (#4151)
- Add `$mob->IsBoat()`. - Add `$mob->IsControllableBoat()`. - Add `mob:IsBoat()`. - Add `mob:IsControllableBoat()`. - Allows operators to determine if a mob is a boat or a controllable boat.
This commit is contained in:
@@ -3273,6 +3273,18 @@ bool Lua_Mob::IsDestructibleObject()
|
||||
return self->IsDestructibleObject();
|
||||
}
|
||||
|
||||
bool Lua_Mob::IsBoat()
|
||||
{
|
||||
Lua_Safe_Call_Bool();
|
||||
return self->IsBoat();
|
||||
}
|
||||
|
||||
bool Lua_Mob::IsControllableBoat()
|
||||
{
|
||||
Lua_Safe_Call_Bool();
|
||||
return self->IsControllableBoat();
|
||||
}
|
||||
|
||||
luabind::scope lua_register_mob() {
|
||||
return luabind::class_<Lua_Mob, Lua_Entity>("Mob")
|
||||
.def(luabind::constructor<>())
|
||||
@@ -3655,8 +3667,10 @@ luabind::scope lua_register_mob() {
|
||||
.def("IsBeneficialAllowed", (bool(Lua_Mob::*)(Lua_Mob))&Lua_Mob::IsBeneficialAllowed)
|
||||
.def("IsBerserk", &Lua_Mob::IsBerserk)
|
||||
.def("IsBlind", (bool(Lua_Mob::*)(void))&Lua_Mob::IsBlind)
|
||||
.def("IsBoat", &Lua_Mob::IsBoat)
|
||||
.def("IsCasting", &Lua_Mob::IsCasting)
|
||||
.def("IsCharmed", &Lua_Mob::IsCharmed)
|
||||
.def("IsControllableBoat", &Lua_Mob::IsControllableBoat)
|
||||
.def("IsDestructibleObject", &Lua_Mob::IsDestructibleObject)
|
||||
.def("IsEliteMaterialItem", (uint32(Lua_Mob::*)(uint8))&Lua_Mob::IsEliteMaterialItem)
|
||||
.def("IsEngaged", (bool(Lua_Mob::*)(void))&Lua_Mob::IsEngaged)
|
||||
|
||||
Reference in New Issue
Block a user