diff 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
line wrap: on
line diff
--- a/QuestPOI.lua	Tue Jul 25 12:38:27 2017 -0400
+++ b/QuestPOI.lua	Tue Sep 05 02:58:24 2017 -0400
@@ -116,7 +116,7 @@
     hideNumber = true,
   },
   [REWARD_CURRENCY] = {
-    textColor = {1,1,0,.5}
+    textColor = {0,1,1,.75}
   },
   [REWARD_REAGENT] = {
 
@@ -607,8 +607,12 @@
   return self.dataLoaded
 end
 
-local ID_RESOURCES = 1220
-local ID_LEGIONFALL = 1342
+local shownCurrencies = {
+  [1220] = true,
+  [1342]  = true,
+  [1508] = true, -- argunite
+  [1506] = true, -- argus waystone
+}
 
 --- Returns true if data has changed (either from loading in or qualifications changed)
 function QuestPOI:UpdateRewards()
@@ -655,17 +659,12 @@
         })
 
         --dprint('  currency', i, currencyID, name, " |T"..tostring(texture)..":12:12|t")
-        if currencyID == ID_RESOURCES then
+        if shownCurrencies[currencyID] then
           rewardIcon = texture
           rewardCount = numItems
           rewardName = name
           rewardType = REWARD_CURRENCY
           foundPrimary = true
-        elseif currencyID == ID_LEGIONFALL then
-          xpIcon = texture
-          xpCount = numItems
-          xpName = name
-          xpType = REWARD_CURRENCY
         end
       end