Skip to content

Commit

Permalink
Hotfixed affix schedule
Browse files Browse the repository at this point in the history
  • Loading branch information
AcidWeb committed Jan 31, 2018
1 parent dcf8343 commit 6b0ff06
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
12 changes: 8 additions & 4 deletions REKeys.lua
Original file line number Diff line number Diff line change
Expand Up @@ -474,16 +474,20 @@ function RE:GetVIPList()
end

function RE:GetPrefixes()
local affixes = {{0, 0, 0}, {0, 0, 0}}
if RE.Settings.CurrentWeek > 0 then
local affixes = {{}, {}}
local scheduleWeek = RE.Settings.CurrentWeek - 1 % #RE.AffixSchedule + 1
affixes[1] = RE.AffixSchedule[scheduleWeek]
scheduleWeek = RE.Settings.CurrentWeek % #RE.AffixSchedule + 1
affixes[2] = RE.AffixSchedule[scheduleWeek]
RE.Tooltip:AddHeader("|cffffffff"..GetAffixInfo(affixes[1][1]).."|r", "|cffff0000|||r", "|cffffffff"..GetAffixInfo(affixes[1][2]).."|r", "|cffff0000|||r", "|cffffffff"..GetAffixInfo(affixes[1][3]).."|r")
RE.Tooltip:AddLine()
RE.Tooltip:AddHeader("|cffbbbbbb"..GetAffixInfo(affixes[2][1]).."|r", "|cff00ff00|||r", "|cffbbbbbb"..GetAffixInfo(affixes[2][2]).."|r", "|cff00ff00|||r", "|cffbbbbbb"..GetAffixInfo(affixes[2][3]).."|r")
else
RE.Tooltip:AddHeader("|cffffffff?|r", "|cffff0000|||r", "|cffffffff?|r", "|cffff0000|||r", "|cffffffff?|r")
RE.Tooltip:AddLine()
RE.Tooltip:AddHeader("|cffbbbbbb?|r", "|cff00ff00|||r", "|cffbbbbbb?|r", "|cff00ff00|||r", "|cffbbbbbb?|r")
end
RE.Tooltip:AddHeader("|cffffffff"..GetAffixInfo(affixes[1][1]).."|r" or "|cffffffff?|r", "|cffff0000|||r", "|cffffffff"..GetAffixInfo(affixes[1][2]).."|r" or "|cffffffff?|r", "|cffff0000|||r", "|cffffffff"..GetAffixInfo(affixes[1][3]).."|r" or "|cffffffff?|r")
RE.Tooltip:AddLine()
RE.Tooltip:AddHeader("|cffbbbbbb"..GetAffixInfo(affixes[2][1]).."|r" or "|cffbbbbbb?|r", "|cff00ff00|||r", "|cffbbbbbb"..GetAffixInfo(affixes[2][2]).."|r" or "|cffbbbbbb?|r", "|cff00ff00|||r", "|cffbbbbbb"..GetAffixInfo(affixes[2][3]).."|r" or "|cffbbbbbb?|r")
end

function RE:GetFill(row)
Expand Down
2 changes: 1 addition & 1 deletion REKeys.toc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
## Interface: 70300
## Title: |cFF74D06CRE|rKeys
## Notes: Collect information about keystones owned by your friends.
## Version: 1.3.3
## Version: 1.3.4
## Author: AcidWeb
## SavedVariables: REKeysDB, REKeysSettings

Expand Down

0 comments on commit 6b0ff06

Please sign in to comment.