Skip to content

Commit

Permalink
BfA/SiegeOfBoralus: Gate timer updates
Browse files Browse the repository at this point in the history
  • Loading branch information
ntowle committed Nov 9, 2024
1 parent b12c845 commit 844de46
Show file tree
Hide file tree
Showing 14 changed files with 37 additions and 15 deletions.
8 changes: 8 additions & 0 deletions BfA/SiegeOfBoralus/Bainbridge.lua
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,14 @@ function mod:OnEngage()
self:Bar(257585, 11) -- Cannon Barrage
end

function mod:OnWin()
local trashMod = BigWigs:GetBossModule("Siege of Boralus Trash", true)
if trashMod then
trashMod:Enable()
trashMod:FirstBossDefeated()
end
end

--------------------------------------------------------------------------------
-- Event Handlers
--
Expand Down
2 changes: 1 addition & 1 deletion BfA/SiegeOfBoralus/Darkfathom.lua
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function mod:OnWin()
local trashMod = BigWigs:GetBossModule("Siege of Boralus Trash", true)
if trashMod then
trashMod:Enable()
trashMod:LockwoodDefeated(13)
trashMod:DarkfathomDefeated()
end
end

Expand Down
2 changes: 1 addition & 1 deletion BfA/SiegeOfBoralus/Locales/deDE.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ if L then
L.tempest = "Orkan der Bilgeratten"
L.invader = "Aschenwindeindringling"

L.gate_open_desc = "Zeigt einen Timer wann der Wellenzähmer von Kul Tiras das Tor hinter Schreckenskapitänin Luebke öffnet."
--L.gate_open_desc = "Show a bar indicating when the gate to the next area will open after defeating each boss."
end

L = BigWigs:NewBossLocale("Dread Captain Lockwood", "deDE")
Expand Down
2 changes: 1 addition & 1 deletion BfA/SiegeOfBoralus/Locales/esES.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ if L then
L.tempest = "Tempestad de las Ratas de Pantoque"
L.invader = "Invasor de los Gobernalle"

--L.gate_open_desc = "Show a bar indicating when the Kul Tiran Wavetender will open the gate after Dread Captain Lockwood."
--L.gate_open_desc = "Show a bar indicating when the gate to the next area will open after defeating each boss."
end

L = BigWigs:NewBossLocale("Dread Captain Lockwood", "esES") or BigWigs:NewBossLocale("Dread Captain Lockwood", "esMX")
Expand Down
2 changes: 1 addition & 1 deletion BfA/SiegeOfBoralus/Locales/frFR.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ if L then
L.tempest = "Tempête des Soutaillons"
L.invader = "Envahisseur corsandre"

--L.gate_open_desc = "Show a bar indicating when the Kul Tiran Wavetender will open the gate after Dread Captain Lockwood."
--L.gate_open_desc = "Show a bar indicating when the gate to the next area will open after defeating each boss."
end

L = BigWigs:NewBossLocale("Dread Captain Lockwood", "frFR")
Expand Down
2 changes: 1 addition & 1 deletion BfA/SiegeOfBoralus/Locales/itIT.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ if L then
L.tempest = "Tempesta dei Ratti di Sentina"
L.invader = "Invasore dei Bracescura"

--L.gate_open_desc = "Show a bar indicating when the Kul Tiran Wavetender will open the gate after Dread Captain Lockwood."
--L.gate_open_desc = "Show a bar indicating when the gate to the next area will open after defeating each boss."
end

L = BigWigs:NewBossLocale("Dread Captain Lockwood", "itIT")
Expand Down
2 changes: 1 addition & 1 deletion BfA/SiegeOfBoralus/Locales/koKR.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ if L then
L.tempest = "항만의 시궁쥐단 폭풍우소환사"
L.invader = "애쉬베인 침략자"

L.gate_open_desc = "공포의 선장 록우드 이후에 쿨 티란 파도지기의 문이 열리는 시점을 나타내는 바를 표시합니다."
--L.gate_open_desc = "Show a bar indicating when the gate to the next area will open after defeating each boss."
end

L = BigWigs:NewBossLocale("Dread Captain Lockwood", "koKR")
Expand Down
2 changes: 1 addition & 1 deletion BfA/SiegeOfBoralus/Locales/ptBR.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ if L then
L.tempest = "Trovoeiro Rato de Porão"
L.invader = "Invasor Grimpagris"

--L.gate_open_desc = "Show a bar indicating when the Kul Tiran Wavetender will open the gate after Dread Captain Lockwood."
--L.gate_open_desc = "Show a bar indicating when the gate to the next area will open after defeating each boss."
end

L = BigWigs:NewBossLocale("Dread Captain Lockwood", "ptBR")
Expand Down
2 changes: 1 addition & 1 deletion BfA/SiegeOfBoralus/Locales/ruRU.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ if L then
L.tempest = "Воин бури из братства Трюмных Крыс"
L.invader = "Захватчик дома Эшвейнов"

--L.gate_open_desc = "Show a bar indicating when the Kul Tiran Wavetender will open the gate after Dread Captain Lockwood."
--L.gate_open_desc = "Show a bar indicating when the gate to the next area will open after defeating each boss."
end

L = BigWigs:NewBossLocale("Dread Captain Lockwood", "ruRU")
Expand Down
2 changes: 1 addition & 1 deletion BfA/SiegeOfBoralus/Locales/zhCN.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ if L then
L.tempest = "水鼠帮唤风者"
L.invader = "艾什凡入侵者"

L.gate_open_desc = "显示库尔提拉斯护潮者在恐怖船长洛克伍德击杀后打开大门的计时条。"
--L.gate_open_desc = "Show a bar indicating when the gate to the next area will open after defeating each boss."
end

L = BigWigs:NewBossLocale("Dread Captain Lockwood", "zhCN")
Expand Down
2 changes: 1 addition & 1 deletion BfA/SiegeOfBoralus/Locales/zhTW.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ if L then
L.tempest = "污鼠會風暴法師"
L.invader = "艾胥凡入侵者"

--L.gate_open_desc = "Show a bar indicating when the Kul Tiran Wavetender will open the gate after Dread Captain Lockwood."
--L.gate_open_desc = "Show a bar indicating when the gate to the next area will open after defeating each boss."
end

L = BigWigs:NewBossLocale("Dread Captain Lockwood", "zhTW")
Expand Down
2 changes: 1 addition & 1 deletion BfA/SiegeOfBoralus/Lockwood.lua
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ function mod:OnWin()
local trashMod = BigWigs:GetBossModule("Siege of Boralus Trash", true)
if trashMod then
trashMod:Enable()
trashMod:LockwoodDefeated(4.8)
trashMod:LockwoodDefeated()
end
end

Expand Down
2 changes: 1 addition & 1 deletion BfA/SiegeOfBoralus/Redhook.lua
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ function mod:OnWin()
local trashMod = BigWigs:GetBossModule("Siege of Boralus Trash", true)
if trashMod then
trashMod:Enable()
trashMod:LockwoodDefeated(5)
trashMod:FirstBossDefeated()
end
end

Expand Down
20 changes: 17 additions & 3 deletions BfA/SiegeOfBoralus/Trash.lua
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ if L then
L.invader = "Ashvane Invader"

L.gate_open = CL.gate_open
L.gate_open_desc = "Show a bar indicating when the Kul Tiran Wavetender will open the gate after Dread Captain Lockwood."
L.gate_open_desc = "Show a bar indicating when the gate to the next area will open after defeating each boss."
L.gate_open_icon = "achievement_dungeon_siegeofboralus"
end

Expand Down Expand Up @@ -230,9 +230,23 @@ end

-- RP Timers

-- triggered from Chopper Redhook's and Sergeant Bainbridge's :OnWin
function mod:FirstBossDefeated()
self:Bar("gate_open", 4.2, L.gate_open, L.gate_open_icon)
end

-- triggered from Dread Captain Lockwood's :OnWin
function mod:LockwoodDefeated(duration)
self:Bar("gate_open", duration, L.gate_open, L.gate_open_icon)
function mod:LockwoodDefeated()
self:Bar("gate_open", 4.8, L.gate_open, L.gate_open_icon)
end

-- triggered from Hadal Darkfathom's :OnWin
function mod:DarkfathomDefeated()
if self:Mythic() or self:Heroic() then -- Alliance version
self:Bar("gate_open", 12.3, L.gate_open, L.gate_open_icon)
--else -- we might be in the Horde version which has a shorter timer
--self:Bar("gate_open", 4.9, L.gate_open, L.gate_open_icon)
end
end

-- Scrimshaw Enforcer / Kul Tiran Halberd
Expand Down

0 comments on commit 844de46

Please sign in to comment.