mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-19 17:38:26 +00:00
Merge branch 'master' into hate_list_quest_api
This commit is contained in:
@@ -6179,6 +6179,22 @@ XS(XS_Mob_SetBucket) {
|
||||
XSRETURN_EMPTY;
|
||||
}
|
||||
|
||||
XS(XS_Mob_IsHorse);
|
||||
XS(XS_Mob_IsHorse) {
|
||||
dXSARGS;
|
||||
if (items != 1)
|
||||
Perl_croak(aTHX_ "Usage: Mob::IsHorse(THIS)"); // @categories Script Utility
|
||||
{
|
||||
Mob *THIS;
|
||||
bool RETVAL;
|
||||
VALIDATE_THIS_IS_MOB;
|
||||
RETVAL = THIS->IsHorse();
|
||||
ST(0) = boolSV(RETVAL);
|
||||
sv_2mortal(ST(0));
|
||||
}
|
||||
XSRETURN(1);
|
||||
}
|
||||
|
||||
XS(XS_Mob_GetHateListByDistance); /* prototype to pass -Wmissing-prototypes */
|
||||
XS(XS_Mob_GetHateListByDistance) {
|
||||
dXSARGS;
|
||||
@@ -6248,6 +6264,7 @@ XS(boot_Mob) {
|
||||
newXSproto(strcpy(buf, "IsDoor"), XS_Mob_IsDoor, file, "$");
|
||||
newXSproto(strcpy(buf, "IsTrap"), XS_Mob_IsTrap, file, "$");
|
||||
newXSproto(strcpy(buf, "IsBeacon"), XS_Mob_IsBeacon, file, "$");
|
||||
newXSproto(strcpy(buf, "IsHorse"), XS_Mob_IsHorse, file, "$");
|
||||
newXSproto(strcpy(buf, "CastToClient"), XS_Mob_CastToClient, file, "$");
|
||||
newXSproto(strcpy(buf, "CastToNPC"), XS_Mob_CastToNPC, file, "$");
|
||||
newXSproto(strcpy(buf, "CastToMob"), XS_Mob_CastToMob, file, "$");
|
||||
|
||||
Reference in New Issue
Block a user