Quantcast

update weekly chest reward ilvls

Jesse Manelius [07-05-17 - 00:33]
update weekly chest reward ilvls
Filename
iKeystones.lua
diff --git a/iKeystones.lua b/iKeystones.lua
index 5196855..64301a3 100644
--- a/iKeystones.lua
+++ b/iKeystones.lua
@@ -9,6 +9,7 @@ addon:RegisterEvent('BAG_UPDATE')
 addon:RegisterEvent('CHALLENGE_MODE_KEYSTONE_RECEPTABLE_OPEN')
 local iKS = {}
 local player = UnitGUID('player')
+iKS.currentMax = 15
 iKS.weeklyChestItemLevels = {
 	[2] = 875,
 	[3] = 880,
@@ -19,6 +20,11 @@ iKS.weeklyChestItemLevels = {
 	[8] = 895,
 	[9] = 900,
 	[10] = 905,
+	[11] = 910,
+	[12] = 915,
+	[13] = 920,
+	[14] = 925,
+	[15] = 930,
 }
 iKS.keystonesToMapIDs = {
 	[197] = 1456, -- Eye of Azhara
@@ -139,12 +145,12 @@ function iKS:printKeystones()
 		end
 		local str = ''
 		if data.server == GetRealmName() then
-			str = string.format('|c%s%s\124r: %s M:%s', RAID_CLASS_COLORS[data.class].colorStr, data.name, itemLink, (data.maxCompleted >= 10 and '|cff00ff00' .. data.maxCompleted) or data.maxCompleted)
+			str = string.format('|c%s%s\124r: %s M:%s', RAID_CLASS_COLORS[data.class].colorStr, data.name, itemLink, (data.maxCompleted >= iKS.currentMax and '|cff00ff00' .. data.maxCompleted) or data.maxCompleted)
 		else
-			str = string.format('|c%s%s-%s\124r: %s M:%s', RAID_CLASS_COLORS[data.class].colorStr, data.name, data.server,itemLink,(data.maxCompleted >= 10 and '|cff00ff00' .. data.maxCompleted) or data.maxCompleted)
+			str = string.format('|c%s%s-%s\124r: %s M:%s', RAID_CLASS_COLORS[data.class].colorStr, data.name, data.server,itemLink,(data.maxCompleted >= iKS.currentMax and '|cff00ff00' .. data.maxCompleted) or data.maxCompleted)
 		end
 		if data.maxCompleted > 0 then
-			str = str.. string.format('|r (%d)', iKS.weeklyChestItemLevels[data.maxCompleted] or 905)
+			str = str.. string.format('|r (%d)', iKS.weeklyChestItemLevels[data.maxCompleted] or iKS.weeklyChestItemLevels[iKS.currentMax])
 		end
 		print(str)
 	end