comparison QuestPOI.lua @ 111:e8b6c5433128 v7.3.0-1

7.3 Updates
author Nenue
date Tue, 05 Sep 2017 02:58:24 -0400
parents f6ef9a9f5476
children bf4a36378bb9
comparison
equal deleted inserted replaced
110:f6ef9a9f5476 111:e8b6c5433128
114 [REWARD_ARTIFACT_POWER] = {}, 114 [REWARD_ARTIFACT_POWER] = {},
115 [REWARD_GEAR] = { 115 [REWARD_GEAR] = {
116 hideNumber = true, 116 hideNumber = true,
117 }, 117 },
118 [REWARD_CURRENCY] = { 118 [REWARD_CURRENCY] = {
119 textColor = {1,1,0,.5} 119 textColor = {0,1,1,.75}
120 }, 120 },
121 [REWARD_REAGENT] = { 121 [REWARD_REAGENT] = {
122 122
123 hideNumber = true, 123 hideNumber = true,
124 }, 124 },
605 605
606 606
607 return self.dataLoaded 607 return self.dataLoaded
608 end 608 end
609 609
610 local ID_RESOURCES = 1220 610 local shownCurrencies = {
611 local ID_LEGIONFALL = 1342 611 [1220] = true,
612 [1342] = true,
613 [1508] = true, -- argunite
614 [1506] = true, -- argus waystone
615 }
612 616
613 --- Returns true if data has changed (either from loading in or qualifications changed) 617 --- Returns true if data has changed (either from loading in or qualifications changed)
614 function QuestPOI:UpdateRewards() 618 function QuestPOI:UpdateRewards()
615 local questID = self.questID 619 local questID = self.questID
616 if not HaveQuestRewardData(questID) then 620 if not HaveQuestRewardData(questID) then
653 numItems = numItems, 657 numItems = numItems,
654 text = text 658 text = text
655 }) 659 })
656 660
657 --dprint(' currency', i, currencyID, name, " |T"..tostring(texture)..":12:12|t") 661 --dprint(' currency', i, currencyID, name, " |T"..tostring(texture)..":12:12|t")
658 if currencyID == ID_RESOURCES then 662 if shownCurrencies[currencyID] then
659 rewardIcon = texture 663 rewardIcon = texture
660 rewardCount = numItems 664 rewardCount = numItems
661 rewardName = name 665 rewardName = name
662 rewardType = REWARD_CURRENCY 666 rewardType = REWARD_CURRENCY
663 foundPrimary = true 667 foundPrimary = true
664 elseif currencyID == ID_LEGIONFALL then
665 xpIcon = texture
666 xpCount = numItems
667 xpName = name
668 xpType = REWARD_CURRENCY
669 end 668 end
670 end 669 end
671 670
672 local honorAmount = GetQuestLogRewardHonor(questID); 671 local honorAmount = GetQuestLogRewardHonor(questID);
673 if honorAmount > 0 then 672 if honorAmount > 0 then