Skip to content

Commit

Permalink
Tweaked handling of unknown affix schedule
Browse files Browse the repository at this point in the history
  • Loading branch information
AcidWeb committed May 14, 2023
1 parent 2feb6a0 commit 6b94020
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions REKeys.lua
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ RE.AceConfig = {
}
-- TODO DF Season 2
RE.AffixSchedule = {
{9, 124, 6}
-- {9, 124, 6},
}
RE.DungeonNames = {
[438] = "VP",
Expand Down Expand Up @@ -402,7 +402,7 @@ function RE:FillTooltip()
RE.Tooltip:AddLine()
RE.Tooltip:AddSeparator()
RE.Tooltip:AddLine()
RE.Tooltip:SetColumnLayout(6, "LEFT", "CENTER", "LEFT", "CENTER", "LEFT")
RE.Tooltip:SetColumnLayout(5, "LEFT", "CENTER", "LEFT", "CENTER", "LEFT")

for name, payload in OrderedPairs(RE.DB, OrderedCompare) do
if payload.Fresh or RE.Settings.OfflinePlayers or RE.Settings.PinnedCharacters[name] then
Expand Down Expand Up @@ -554,7 +554,7 @@ function RE:GetAffixes()
RE.Tooltip:AddHeader("|cffffffff"..GetAffixInfo(currentAffixes[1].id).."|r", "|cffff0000|||r", "|cffffffff"..GetAffixInfo(currentAffixes[2].id).."|r", "|cffff0000|||r", "|cffffffff"..GetAffixInfo(currentAffixes[3].id).."|r")
RE.Tooltip:AddLine()
end
if RE.Settings.CurrentWeek > 0 then
if RE.Settings.CurrentWeek > 0 and #RE.AffixSchedule > 1 then
local affixes = RE.AffixSchedule[RE.Settings.CurrentWeek % #RE.AffixSchedule + 1]
RE.Tooltip:AddHeader("|cffbbbbbb"..GetAffixInfo(affixes[1]).."|r", "|cff00ff00|||r", "|cffbbbbbb"..GetAffixInfo(affixes[2]).."|r", "|cff00ff00|||r", "|cffbbbbbb"..GetAffixInfo(affixes[3]).."|r")
else
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: 100100
## Title: |cFF74D06CRE|rKeys
## Notes: Collect information about keystones owned by your friends.
## Version: 2.1.0
## Version: 2.1.1
## Author: AcidWeb
## SavedVariables: REKeysSettings, REKeysDB2
## OptionalDeps: RaiderIO
Expand Down

0 comments on commit 6b94020

Please sign in to comment.