Skip to content

Commit

Permalink
Inverse the duration lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
nebularg committed Sep 9, 2024
1 parent 9cbca82 commit fc85fce
Showing 1 changed file with 40 additions and 18 deletions.
58 changes: 40 additions & 18 deletions Core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -61,17 +61,39 @@ local heroes = {
}

-- After Sigma, all the countdowns were changed to 3..2..1 :\
local three = {
Echo = true,
Sojourn = true,
JunkerQueen = true,
Lifeweaver = true,
Kiriko = true,
Ramattra = true,
Illari = true,
Mauga = true,
Venture = true,
Juno = true,
local five = {
Announcer = true,
Ana = true,
Ashe = true,
Baptiste = true,
Bastion = true,
Brigitte = true,
McCree = true,
DVa = true,
Doomfist = true,
Genji = true,
Hanzo = true,
Junkrat = true,
Lucio = true,
Mei = true,
Mercy = true,
Moira = true,
Orisa = true,
Pharah = "Pharah" ,
Reaper = true,
Reinhardt = true,
Roadhog = true,
Sigma = true,
Soldier76 = true,
Sombra = true,
Symmetra = true,
Torbjorn = true,
Tracer = true,
Widowmaker = true,
Winston = true,
WreckingBall = true,
Zarya = true,
Zenyatta = true,
}

local function register(locale)
Expand All @@ -91,21 +113,21 @@ local function register(locale)
"Interface\\AddOns\\BigWigs_Countdown_Overwatch\\enUS\\Bastion_4.ogg",
"Interface\\AddOns\\BigWigs_Countdown_Overwatch\\enUS\\Bastion_5.ogg",
})
elseif three[k] then
BigWigsAPI:RegisterCountdown(id, ("%s [3]"):format(name), {
elseif five[k] then
BigWigsAPI:RegisterCountdown(id, name, {
path:format(k, 1),
path:format(k, 2),
path:format(k, 3),
false,
false,
path:format(k, 4),
path:format(k, 5),
})
else
BigWigsAPI:RegisterCountdown(id, name, {
BigWigsAPI:RegisterCountdown(id, ("%s [3]"):format(name), {
path:format(k, 1),
path:format(k, 2),
path:format(k, 3),
path:format(k, 4),
path:format(k, 5),
false,
false,
})
end
end
Expand Down

0 comments on commit fc85fce

Please sign in to comment.