Skip to content

Commit

Permalink
TWW Season 1 update
Browse files Browse the repository at this point in the history
  • Loading branch information
AcidWeb committed Dec 21, 2024
1 parent bd52bed commit 2b55719
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"utf8": "disable"
},
"Lua.workspace.library": [
"~\\.vscode\\extensions\\ketho.wow-api-0.17.6\\Annotations"
"~\\.vscode\\extensions\\ketho.wow-api-0.18.1\\Annotations"
],
"Lua.diagnostics.globals": [
"BAG_FILTER_TITLE_SORTING",
Expand Down
3 changes: 2 additions & 1 deletion Locale/enUS.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ L["Display minimap button"] = true
L["Pinned characters"] = true
L["Comma-separated list of character names. They will be shown at the top of the list regardless of status."] = true
L["Send new key notification"] = true
L["When checked notification to party will be send when the new key is acquired."] = true
L["When checked notification to party will be send when the new key is acquired."] = true
L["Xal'atath's Bargain"] = true
29 changes: 14 additions & 15 deletions REKeys.lua
Original file line number Diff line number Diff line change
Expand Up @@ -142,16 +142,14 @@ RE.AceConfig = {
}
}
RE.AffixSchedule = {
{9, 124, 6},
{10, 134, 7},
{9, 136, 123},
{10, 135, 6},
{9, 3, 8},
{10, 124, 11},
{9, 135, 7},
{10, 136, 8},
{9, 134, 11},
{10, 3, 123}
{148, 9},
{159, 10},
{158, 9},
{160, 10},
{159, 9},
{148, 10},
{160, 9},
{158, 10}
}
RE.DungeonNames = {
[507] = "GB",
Expand Down Expand Up @@ -364,7 +362,7 @@ function RE:FindKey(dungeonCompleted)
local currentAffixes = GetCurrentAffixes()
if currentAffixes and #currentAffixes ~= 0 then
for i, affixes in ipairs(RE.AffixSchedule) do
if currentAffixes[1].id == affixes[1] and currentAffixes[2].id == affixes[2] and currentAffixes[3].id == affixes[3] then
if currentAffixes[1].id == affixes[1] and currentAffixes[2].id == affixes[2] then
RE.Settings.CurrentWeek = i
break
end
Expand Down Expand Up @@ -538,7 +536,7 @@ end
function RE:GetAffixes()
local currentAffixes = GetCurrentAffixes()
if currentAffixes and #currentAffixes ~= 0 then
if #currentAffixes == 4 then
if #currentAffixes == 5 then
local bestRuns = RE:GetParsedBestRun()
local leftPanel = "[|cffff0000-|r]"
local centerPanel = "[|cffff0000-|r]"
Expand All @@ -557,12 +555,13 @@ function RE:GetAffixes()
RE.Tooltip:AddSeparator()
RE.Tooltip:AddLine()
end
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:AddHeader("|cffffffff"..GetAffixInfo(currentAffixes[1].id):gsub(L["Xal'atath's Bargain"]..": ", "").."|r", "|cffff0000|||r", "|cffffffff"..GetAffixInfo(currentAffixes[2].id).."|r", "|cffff0000|||r", "|cffffffff"..GetAffixInfo(currentAffixes[4].id).."|r")
RE.Tooltip:AddLine()
end
if RE.Settings.CurrentWeek > 0 and #RE.AffixSchedule > 1 then
if RE.Settings.CurrentWeek > 0 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")
affixes[3] = affixes[2] == 9 and 10 or 9
RE.Tooltip:AddHeader("|cffbbbbbb"..GetAffixInfo(affixes[1]):gsub(L["Xal'atath's Bargain"]..": ", "").."|r", "|cff00ff00|||r", "|cffbbbbbb"..GetAffixInfo(affixes[2]).."|r", "|cff00ff00|||r", "|cffbbbbbb"..GetAffixInfo(affixes[3]).."|r")
else
RE.Tooltip:AddHeader("|cffbbbbbb?|r", "|cff00ff00|||r", "|cffbbbbbb?|r", "|cff00ff00|||r", "|cffbbbbbb?|r")
end
Expand Down
4 changes: 2 additions & 2 deletions REKeys.toc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
## Interface: 110005
## Interface: 110007
## Title: |cFF74D06CRE|rKeys
## Notes: Collect information about keystones owned by your friends.
## Version: 2.1.14
## Version: 2.1.15
## Author: AcidWeb
## SavedVariables: REKeysSettings, REKeysDB2
## OptionalDeps: RaiderIO
Expand Down

0 comments on commit 2b55719

Please sign in to comment.