Mercurial > wow > buffalo2
comparison ObjectiveCore.lua @ 20:6bd2102d340b
ObjectiveCore
- sorting out oddball events
| author | Nenue |
|---|---|
| date | Wed, 06 Apr 2016 07:54:19 -0400 |
| parents | 605e8f0e46db |
| children | d5ee940de273 |
comparison
equal
deleted
inserted
replaced
| 19:605e8f0e46db | 20:6bd2102d340b |
|---|---|
| 260 self.inMicroDungeon = inMicroDungeon; | 260 self.inMicroDungeon = inMicroDungeon; |
| 261 end | 261 end |
| 262 elseif ( event == "QUEST_AUTOCOMPLETE" ) then | 262 elseif ( event == "QUEST_AUTOCOMPLETE" ) then |
| 263 local questId = ...; | 263 local questId = ...; |
| 264 AddAutoQuestPopUp(questId, "COMPLETE"); | 264 AddAutoQuestPopUp(questId, "COMPLETE"); |
| 265 mod:Update(OBJECTIVE_TRACKER_UPDATE_STATIC) | |
| 265 elseif ( event == "SCENARIO_UPDATE" ) then | 266 elseif ( event == "SCENARIO_UPDATE" ) then |
| 266 local newStage = ...; | 267 local newStage = ...; |
| 267 if ( newStage ) then | 268 if ( newStage ) then |
| 268 mod:Update(OBJECTIVE_TRACKER_UPDATE_SCENARIO_NEW_STAGE); | 269 mod:Update(OBJECTIVE_TRACKER_UPDATE_SCENARIO_NEW_STAGE); |
| 269 else | 270 else |
| 275 end | 276 end |
| 276 SortQuestWatches(); | 277 SortQuestWatches(); |
| 277 elseif ( event == "QUEST_TURNED_IN" ) then | 278 elseif ( event == "QUEST_TURNED_IN" ) then |
| 278 local questID, xp, money = ...; | 279 local questID, xp, money = ...; |
| 279 if ( IsQuestTask(questID) ) then | 280 if ( IsQuestTask(questID) ) then |
| 280 mod.Bonus:Update() | 281 mod:Update(OBJECTIVE_TRACKER_UPDATE_MODULE_BONUS_OBJECTIVE) |
| 281 end | 282 end |
| 282 elseif ( event == "PLAYER_MONEY" and self.watchMoneyReasons > 0 ) then | 283 elseif ( event == "PLAYER_MONEY" and self.watchMoneyReasons > 0 ) then |
| 283 mod:Update(self.watchMoneyReasons); | 284 mod:Update(self.watchMoneyReasons); |
| 284 end | 285 end |
| 285 end | 286 end |
