From 6b9402013748db9ea5b50489c76f866c6c31ee5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Jastrz=C4=99bski?= Date: Sun, 14 May 2023 13:23:26 +0200 Subject: [PATCH] Tweaked handling of unknown affix schedule --- REKeys.lua | 6 +++--- REKeys.toc | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/REKeys.lua b/REKeys.lua index 326680a..1c1a6d3 100644 --- a/REKeys.lua +++ b/REKeys.lua @@ -135,7 +135,7 @@ RE.AceConfig = { } -- TODO DF Season 2 RE.AffixSchedule = { - {9, 124, 6} +-- {9, 124, 6}, } RE.DungeonNames = { [438] = "VP", @@ -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 @@ -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 diff --git a/REKeys.toc b/REKeys.toc index 7376336..d5c8bdd 100644 --- a/REKeys.toc +++ b/REKeys.toc @@ -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