From fc85fce786cc247c0e8e81caaf04d47674f528b2 Mon Sep 17 00:00:00 2001 From: Kyle Buller Date: Mon, 9 Sep 2024 02:11:21 -0500 Subject: [PATCH] Inverse the duration lookup --- Core.lua | 58 ++++++++++++++++++++++++++++++++++++++------------------ 1 file changed, 40 insertions(+), 18 deletions(-) diff --git a/Core.lua b/Core.lua index a4016f3..7684eee 100644 --- a/Core.lua +++ b/Core.lua @@ -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) @@ -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