Merge pull request #1100 from noudess/empty_processing

Allow quests to turn on mob processing in empty zones
This commit is contained in:
Chris Miles
2020-08-16 02:03:22 -05:00
committed by GitHub
7 changed files with 32 additions and 1 deletions
+14
View File
@@ -2071,6 +2071,19 @@ XS(XS__repopzone) {
XSRETURN_EMPTY;
}
XS(XS__processmobswhilezoneempty);
XS(XS__processmobswhilezoneempty) {
dXSARGS;
if (items != 1)
Perl_croak(aTHX_ "Usage: quest::processmobswhilezoneempty(bool on)");
bool ProcessingOn = ((int) SvIV(ST(0))) == 0 ? false : true;
quest_manager.processmobswhilezoneempty(ProcessingOn);
XSRETURN_EMPTY;
}
XS(XS__npcrace);
XS(XS__npcrace) {
dXSARGS;
@@ -6291,6 +6304,7 @@ EXTERN_C XS(boot_quest) {
newXS(strcpy(buf, "playersize"), XS__playersize, file);
newXS(strcpy(buf, "playertexture"), XS__playertexture, file);
newXS(strcpy(buf, "popup"), XS__popup, file);
newXS(strcpy(buf, "processmobswhilezoneempty"), XS__processmobswhilezoneempty, file);
newXS(strcpy(buf, "pvp"), XS__pvp, file);
newXS(strcpy(buf, "qs_player_event"), XS__qs_player_event, file);
newXS(strcpy(buf, "qs_send_query"), XS__qs_send_query, file);