Skip to content

Commit

Permalink
Dragonflight Season 1 update
Browse files Browse the repository at this point in the history
  • Loading branch information
AcidWeb committed Dec 13, 2022
1 parent bcb200d commit d55968d
Show file tree
Hide file tree
Showing 3 changed files with 114 additions and 40 deletions.
76 changes: 40 additions & 36 deletions REKeys.lua
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ local SecondsToTime = _G.SecondsToTime
local ElvUI = _G.ElvUI
local RaiderIO = _G.RaiderIO

RE.DataVersion = 17
RE.DataVersion = 18
RE.ThrottleTimer = 0
RE.BestRun = 0
RE.Outdated = false
Expand Down Expand Up @@ -118,44 +118,48 @@ RE.AceConfig = {
}
}
RE.AffixSchedule = {
{9, 122, 14},
{10, 8, 12},
{9, 7, 13},
{10, 11, 124},
{9, 6, 3},
{10, 122, 12},
{9, 123, 4},
{10, 7, 14},
{9, 8, 124},
{10, 6, 13},
{9, 11, 3},
{10, 123, 4}
{10, 6, 14},
{9, 11, 12},
{10, 8, 3},
{9, 6, 124},
{10, 123, 12},
{9, 8, 13},
{10, 7, 124},
{9, 123, 14},
{10, 11, 13},
{9, 7, 3}
}
RE.DungeonNames = {
[169] = "ID",
[166] = "GD",
[227] = "LOWR",
[234] = "UPPR",
[370] = "WORK",
[369] = "YARD",
[391] = "STRT",
[392] = "GMBT"
[2] = "TJS",
[165] = "SBG",
[200] = "HOV",
[210] = "COS",
[399] = "RLP",
[400] = "NO",
[401] = "AV",
[402] = "AA"
}
RE.RewardColors = {
[1] = "FFFF0000",
[2] = "FFEB1300",
[3] = "FFD72700",
[4] = "FFC43A00",
[5] = "FFB04E00",
[6] = "FF9C6200",
[7] = "FF897500",
[8] = "FF758900",
[9] = "FF629C00",
[10] = "FF4EB000",
[11] = "FF3AC400",
[12] = "FF27D700",
[13] = "FF13EB00",
[14] = "FF00FF00"
[2] = "FFFF2C00",
[3] = "FFFE4200",
[4] = "FFFC5300",
[5] = "FFF86300",
[6] = "FFF47000",
[7] = "FFEF7E00",
[8] = "FFE98A00",
[9] = "FFE39600",
[10] = "FFDBA100",
[11] = "FFD2AC00",
[12] = "FFC8B600",
[13] = "FFBEC000",
[14] = "FFB2CA00",
[15] = "FFA4D400",
[16] = "FF95DD00",
[17] = "FF83E600",
[18] = "FF6DEE00",
[19] = "FF4EF700",
[20] = "FF00FF00"
}
RE.Factions = {
["Alliance"] = 1,
Expand Down Expand Up @@ -833,8 +837,8 @@ function RE:GetBestRunString(bestRun)
end

function RE:GetKeystoneLevelColor(level)
if level > 14 then
return RE.RewardColors[14]
if level > 20 then
return RE.RewardColors[20]
else
return RE.RewardColors[level]
end
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: 100002
## Title: |cFF74D06CRE|rKeys
## Notes: Collect information about keystones owned by your friends.
## Version: 1.11.3
## Version: 1.12.0
## Author: AcidWeb
## SavedVariables: REKeysDB, REKeysSettings
## X-WoWI-ID: 24510
Expand Down
76 changes: 73 additions & 3 deletions TaintLess.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Ui><Script><![CDATA[--[[
TaintLess [22-09-15]
TaintLess [22-11-27]
https://www.townlong-yak.com/addons/taintless
All rights reserved.
Expand All @@ -9,14 +9,28 @@ Permission is hereby granted to distribute unmodified copies of this file.
]]
local function purgeKey(t, k)
local logLevel, c = GetCVar("taintLog"), -42
if (tonumber(logLevel) or 0) > 1 then
if CVarCallbackRegistry then
CVarCallbackRegistry:UnregisterEvent("CVAR_UPDATE")
end
SetCVar("taintLog", "1")
else
logLevel = nil
end
t[k] = nil
local c = 42
repeat
if t[c] == nil then
t[c] = nil
end
c = c + 1
c = c - 1
until issecurevariable(t, k)
if logLevel then
SetCVar("taintLog", logLevel)
if CVarCallbackRegistry then
CVarCallbackRegistry:RegisterEvent("CVAR_UPDATE")
end
end
end
-- https://www.townlong-yak.com/addons/taintless/fixes/RefreshOverread
Expand Down Expand Up @@ -57,4 +71,60 @@ if (tonumber(IOFRAME_SELECTION_PATCH_VERSION) or 0) < 3 then
end
end
-- https://www.townlong-yak.com/addons/taintless/fixes/EditModeOpenDrop
if EditModeManagerFrame and FriendsFrameStatusDropDown and (tonumber(EDITMAN_OPENDROP_PATCH_VERSION) or 0) < 1 then
EDITMAN_OPENDROP_PATCH_VERSION = 1
hooksecurefunc(EditModeManagerFrame, "GetAttribute", function(_, attr)
if attr ~= "UIPanelLayout-checkFit" or EDITMAN_OPENDROP_PATCH_VERSION ~= 1
or (issecurevariable(DropDownList1, "maxWidth") and issecurevariable("UIDROPDOWNMENU_MENU_LEVEL")) then
elseif InCombatLockdown() and FriendsFrameStatusDropDown:IsProtected() then
elseif FriendsFrameStatusDropDown:IsVisible() then
FriendsFrameStatusDropDown:Hide()
FriendsFrameStatusDropDown:Show()
else
local op = FriendsFrameStatusDropDown:GetParent()
FriendsFrameStatusDropDown:SetParent(nil)
if not FriendsFrameStatusDropDown:IsShown() then
FriendsFrameStatusDropDown:Show()
FriendsFrameStatusDropDown:Hide()
end
FriendsFrameStatusDropDown:SetParent(op)
end
end)
end
-- https://www.townlong-yak.com/addons/taintless/fixes/ObjectiveTrackerUpdate
if ObjectiveTrackerFrame and (tonumber(OBJTRACK_DELAYUPDATE_PATCH_VERSION) or 0) < 1 then
OBJTRACK_DELAYUPDATE_PATCH_VERSION = 1
local counter, didDelayUpdate, delayFrameCount = (CreateFrame("Frame", nil, ObjectiveTrackerFrame))
counter:Hide()
counter:SetScript("OnUpdate", function()
if OBJTRACK_DELAYUPDATE_PATCH_VERSION == 1 then
delayFrameCount = delayFrameCount + 1
else
counter:Hide()
end
end)
hooksecurefunc("ObjectiveTracker_Update", function()
if OBJTRACK_DELAYUPDATE_PATCH_VERSION == 1 and didDelayUpdate then
didDelayUpdate = nil
purgeKey(ObjectiveTrackerFrame, "isUpdating")
end
end)
hooksecurefunc(ObjectiveTrackerFrame.HeaderMenu.Title, "ClearAllPoints", function()
if OBJTRACK_DELAYUPDATE_PATCH_VERSION == 1 and not ObjectiveTrackerFrame.isUpdating then
if issecurevariable(ObjectiveTrackerFrame, "isOnLeftSideOfScreen") then
if delayFrameCount then
delayFrameCount = nil
counter:Hide()
end
elseif (delayFrameCount or 0) < 4 then
ObjectiveTrackerFrame.isUpdating, didDelayUpdate, delayFrameCount = 86, 1, delayFrameCount or 0
counter:Show()
else
counter:Hide()
end
end
end)
end
]]></Script></Ui>

0 comments on commit d55968d

Please sign in to comment.