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 authored and GitHub committed 2020-08-16 02:03:22 -05:00
commit 24a8ca39d3
7 files changed
+32 -1

No files matched your search

+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())