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
+9
View File
@@ -857,6 +857,15 @@ void QuestManager::repopzone() {
}
}
void QuestManager::processmobswhilezoneempty(bool on) {
if(zone) {
zone->process_mobs_while_empty = on;
}
else {
LogQuests("QuestManager::processmobswhilezoneempty called with nullptr zone. Probably syntax error in quest file");
}
}
void QuestManager::settarget(const char *type, int target_id) {
QuestManagerCurrentQuestVars();
if (!owner || !owner->IsNPC())