changeset 20:6bd2102d340b

ObjectiveCore - sorting out oddball events
author Nenue
date Wed, 06 Apr 2016 07:54:19 -0400
parents 605e8f0e46db
children d5ee940de273
files ObjectiveCore.lua ObjectiveEvents.lua
diffstat 2 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ObjectiveCore.lua	Wed Apr 06 07:38:35 2016 -0400
+++ b/ObjectiveCore.lua	Wed Apr 06 07:54:19 2016 -0400
@@ -262,6 +262,7 @@
   elseif ( event == "QUEST_AUTOCOMPLETE" ) then
     local questId = ...;
     AddAutoQuestPopUp(questId, "COMPLETE");
+    mod:Update(OBJECTIVE_TRACKER_UPDATE_STATIC)
   elseif ( event == "SCENARIO_UPDATE" ) then
     local newStage = ...;
     if ( newStage ) then
@@ -277,7 +278,7 @@
   elseif ( event == "QUEST_TURNED_IN" ) then
     local questID, xp, money = ...;
     if ( IsQuestTask(questID) ) then
-      mod.Bonus:Update()
+      mod:Update(OBJECTIVE_TRACKER_UPDATE_MODULE_BONUS_OBJECTIVE)
     end
   elseif ( event == "PLAYER_MONEY" and self.watchMoneyReasons > 0 ) then
     mod:Update(self.watchMoneyReasons);
--- a/ObjectiveEvents.lua	Wed Apr 06 07:38:35 2016 -0400
+++ b/ObjectiveEvents.lua	Wed Apr 06 07:54:19 2016 -0400
@@ -65,6 +65,8 @@
   mod:Update(OBJECTIVE_TRACKER_UPDATE_MODULE_AUTO_QUEST_POPUP)
 end
 
+
+
 mod.SetSuperTrackedQuestID = function(questID)
   mod:Update()
 end
\ No newline at end of file