comparison WorldQuests.lua @ 102:4d1520186ea4

7.2.5 changes - Fixed order hall panel not initializing on fresh install
author Nenue
date Thu, 25 May 2017 17:24:00 -0400
parents fbd4ead2a19f
children 9f664a0ef8a8
comparison
equal deleted inserted replaced
101:b68af1e44bdc 102:4d1520186ea4
329 pin.isStale = true 329 pin.isStale = true
330 end 330 end
331 end 331 end
332 332
333 function Module:UpdateBounties(...) 333 function Module:UpdateBounties(...)
334 print('|cFF00FF88BountyInfo()|r', ...) 334 bountiesDirty = nil
335 print('|cFF00FF88BountyInfo()|r', ...)
335 wipe(db.BountiesByFactionID) 336 wipe(db.BountiesByFactionID)
336 wipe(db.BountiesByQuestID) 337 wipe(db.BountiesByQuestID)
337 338
338 db.selectedBounty = nil 339 db.selectedBounty = nil
339 selectedBountyIndex = BountyBoard:GetSelectedBountyIndex() 340 selectedBountyIndex = BountyBoard:GetSelectedBountyIndex()
351 selectedBountyQuestID = info.questID 352 selectedBountyQuestID = info.questID
352 end 353 end
353 print(' ', index, info.factionID, GetQuestLogTitle(GetQuestLogIndexByID(info.questID)), info.complete, (index == selectedBountyIndex) and 'SELECTED' or '') 354 print(' ', index, info.factionID, GetQuestLogTitle(GetQuestLogIndexByID(info.questID)), info.complete, (index == selectedBountyIndex) and 'SELECTED' or '')
354 end 355 end
355 end 356 end
356 bountiesDirty = nil
357 end 357 end
358 358
359 -- check current artifact knowledge and update pins accordingly 359 -- check current artifact knowledge and update pins accordingly
360 function Module:UpdateArtifactPower(overrideLevel) 360 function Module:UpdateArtifactPower(overrideLevel)
361 if InCombatLockdown() then 361 if InCombatLockdown() then
408 end 408 end
409 lastRefresh = GetTime() 409 lastRefresh = GetTime()
410 print(msg, lastRefresh, ...) 410 print(msg, lastRefresh, ...)
411 end 411 end
412 412
413
414 if bountiesDirty then
415 self:UpdateBounties()
416 end
417
413 if not db.Config.EnablePins then 418 if not db.Config.EnablePins then
414 numShown = 0 419 numShown = 0
415 self.refreshBenchMark = GetTime() 420 self.refreshBenchMark = GetTime()
416 self.refreshBenchMarkTicker = 2 421 self.refreshBenchMarkTicker = 2
417 print('starting bench', self.refreshBenchMark) 422 print('starting bench', self.refreshBenchMark)