Skip to content

Commit

Permalink
Delves/Trash: Zekvir random spawn event, Zekvir's Influence (#1166)
Browse files Browse the repository at this point in the history
  • Loading branch information
ntowle authored Oct 11, 2024
1 parent 6388a94 commit a5ca4ed
Show file tree
Hide file tree
Showing 18 changed files with 163 additions and 19 deletions.
6 changes: 6 additions & 0 deletions Delves/Trash/Fungarian.lua
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,12 @@ function mod:OnBossEnable()

-- Particularly Bad Guy
self:Log("SPELL_CAST_START", "HideousLaughter", 372529)

-- also enable the Rares module
local raresModule = BigWigs:GetBossModule("Delve Rares", true)
if raresModule then
raresModule:Enable()
end
end

--------------------------------------------------------------------------------
Expand Down
6 changes: 6 additions & 0 deletions Delves/Trash/Kobold.lua
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,12 @@ function mod:OnBossEnable()

-- Spitfire Fusetender
self:Log("SPELL_CAST_SUCCESS", "ThrowDynamite", 448528)

-- also enable the Rares module
local raresModule = BigWigs:GetBossModule("Delve Rares", true)
if raresModule then
raresModule:Enable()
end
end

--------------------------------------------------------------------------------
Expand Down
6 changes: 6 additions & 0 deletions Delves/Trash/Kobyss.lua
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,12 @@ function mod:OnBossEnable()

-- Deepwater Makura
self:Log("SPELL_CAST_START", "BubbleSurge", 445771)

-- also enable the Rares module
local raresModule = BigWigs:GetBossModule("Delve Rares", true)
if raresModule then
raresModule:Enable()
end
end

function mod:VerifyEnable(_, mobId)
Expand Down
6 changes: 5 additions & 1 deletion Delves/Trash/Locales/deDE.lua
Original file line number Diff line number Diff line change
Expand Up @@ -80,5 +80,9 @@ if L then
L.tala = "Tala"
L.velo = "Velo"
L.anubvir = "Anub'vir"
L.zekvir = "Zekvir (Zufälliges Erscheinen)"
L.zekvir = "Zekvir"
--L.zekvirs_influence = "Zekvir's Influence"
L.zekvir_random = "Zekvir (Zufälliges Erscheinen)"
--L.zekvir_breach = "Zekvir incoming"
--L.zekvir_breach_desc = "Show an alert when Zekvir is spawning in the Delve."
end
6 changes: 5 additions & 1 deletion Delves/Trash/Locales/esES.lua
Original file line number Diff line number Diff line change
Expand Up @@ -80,5 +80,9 @@ if L then
L.tala = "Tala"
L.velo = "Velo"
L.anubvir = "Anub'vir"
L.zekvir = "Zekvir (Random Spawn)"
L.zekvir = "Zekvir"
--L.zekvirs_influence = "Zekvir's Influence"
L.zekvir_random = "Zekvir (Random Spawn)"
--L.zekvir_breach = "Zekvir incoming"
--L.zekvir_breach_desc = "Show an alert when Zekvir is spawning in the Delve."
end
6 changes: 5 additions & 1 deletion Delves/Trash/Locales/frFR.lua
Original file line number Diff line number Diff line change
Expand Up @@ -80,5 +80,9 @@ if L then
L.tala = "Tala"
L.velo = "Velo"
L.anubvir = "Anub'vir"
L.zekvir = "Zekvir (Apparition aléatoire)"
L.zekvir = "Zekvir"
--L.zekvirs_influence = "Zekvir's Influence"
L.zekvir_random = "Zekvir (Apparition aléatoire)"
--L.zekvir_breach = "Zekvir incoming"
--L.zekvir_breach_desc = "Show an alert when Zekvir is spawning in the Delve."
end
6 changes: 5 additions & 1 deletion Delves/Trash/Locales/itIT.lua
Original file line number Diff line number Diff line change
Expand Up @@ -80,5 +80,9 @@ if L then
--L.tala = "Tala"
--L.velo = "Velo"
--L.anubvir = "Anub'vir"
--L.zekvir = "Zekvir (Random Spawn)"
--L.zekvir = "Zekvir"
--L.zekvirs_influence = "Zekvir's Influence"
--L.zekvir_random = "Zekvir (Random Spawn)"
--L.zekvir_breach = "Zekvir incoming"
--L.zekvir_breach_desc = "Show an alert when Zekvir is spawning in the Delve."
end
6 changes: 5 additions & 1 deletion Delves/Trash/Locales/koKR.lua
Original file line number Diff line number Diff line change
Expand Up @@ -80,5 +80,9 @@ if L then
--L.tala = "Tala"
--L.velo = "Velo"
--L.anubvir = "Anub'vir"
--L.zekvir = "Zekvir (Random Spawn)"
--L.zekvir = "Zekvir"
--L.zekvirs_influence = "Zekvir's Influence"
--L.zekvir_random = "Zekvir (Random Spawn)"
--L.zekvir_breach = "Zekvir incoming"
--L.zekvir_breach_desc = "Show an alert when Zekvir is spawning in the Delve."
end
6 changes: 5 additions & 1 deletion Delves/Trash/Locales/ptBR.lua
Original file line number Diff line number Diff line change
Expand Up @@ -80,5 +80,9 @@ if L then
--L.tala = "Tala"
--L.velo = "Velo"
--L.anubvir = "Anub'vir"
--L.zekvir = "Zekvir (Random Spawn)"
--L.zekvir = "Zekvir"
--L.zekvirs_influence = "Zekvir's Influence"
--L.zekvir_random = "Zekvir (Random Spawn)"
--L.zekvir_breach = "Zekvir incoming"
--L.zekvir_breach_desc = "Show an alert when Zekvir is spawning in the Delve."
end
6 changes: 5 additions & 1 deletion Delves/Trash/Locales/ruRU.lua
Original file line number Diff line number Diff line change
Expand Up @@ -80,5 +80,9 @@ if L then
--L.tala = "Tala"
--L.velo = "Velo"
--L.anubvir = "Anub'vir"
--L.zekvir = "Zekvir (Random Spawn)"
--L.zekvir = "Zekvir"
--L.zekvirs_influence = "Zekvir's Influence"
--L.zekvir_random = "Zekvir (Random Spawn)"
--L.zekvir_breach = "Zekvir incoming"
--L.zekvir_breach_desc = "Show an alert when Zekvir is spawning in the Delve."
end
6 changes: 5 additions & 1 deletion Delves/Trash/Locales/zhCN.lua
Original file line number Diff line number Diff line change
Expand Up @@ -80,5 +80,9 @@ if L then
L.tala = "塔拉"
L.velo = "威罗"
L.anubvir = "阿努布维尔"
L.zekvir = "泽克维尔(随机出现)"
L.zekvir = "泽克维尔"
--L.zekvirs_influence = "Zekvir's Influence"
L.zekvir_random = "泽克维尔(随机出现)"
--L.zekvir_breach = "Zekvir incoming"
--L.zekvir_breach_desc = "Show an alert when Zekvir is spawning in the Delve."
end
6 changes: 5 additions & 1 deletion Delves/Trash/Locales/zhTW.lua
Original file line number Diff line number Diff line change
Expand Up @@ -80,5 +80,9 @@ if L then
--L.tala = "Tala"
--L.velo = "Velo"
--L.anubvir = "Anub'vir"
--L.zekvir = "Zekvir (Random Spawn)"
--L.zekvir = "Zekvir"
--L.zekvirs_influence = "Zekvir's Influence"
--L.zekvir_random = "Zekvir (Random Spawn)"
--L.zekvir_breach = "Zekvir incoming"
--L.zekvir_breach_desc = "Show an alert when Zekvir is spawning in the Delve."
end
6 changes: 6 additions & 0 deletions Delves/Trash/Nerubian.lua
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,12 @@ function mod:OnBossEnable()

-- Nerubian Webspinner
self:Log("SPELL_CAST_SUCCESS", "WebLaunch", 433448)

-- also enable the Rares module
local raresModule = BigWigs:GetBossModule("Delve Rares", true)
if raresModule then
raresModule:Enable()
end
end

--------------------------------------------------------------------------------
Expand Down
6 changes: 6 additions & 0 deletions Delves/Trash/Nightfall.lua
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,12 @@ function mod:OnBossEnable()

-- Shadow Elemental
self:Log("SPELL_CAST_START", "InflictDeath", 440205, 470593)

-- also enable the Rares module
local raresModule = BigWigs:GetBossModule("Delve Rares", true)
if raresModule then
raresModule:Enable()
end
end

--------------------------------------------------------------------------------
Expand Down
3 changes: 3 additions & 0 deletions Delves/Trash/Options/Colors.lua
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ BigWigs:AddColors("Delve Rares", {
[450492] = "yellow",
[450505] = {"blue","red"},
[450519] = "orange",
[457448] = "orange",
[457880] = "yellow",
[458090] = "yellow",
[458099] = "red",
[458104] = {"red","yellow"},
Expand All @@ -84,4 +86,5 @@ BigWigs:AddColors("Delve Rares", {
[459421] = "yellow",
[461741] = {"blue","orange"},
[462686] = "red",
["zekvir_breach"] = "cyan",
})
3 changes: 3 additions & 0 deletions Delves/Trash/Options/Sounds.lua
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ BigWigs:AddSounds("Delve Rares", {
[450492] = "alarm",
[450505] = {"alert","info"},
[450519] = "alarm",
[457448] = "alarm",
[457880] = "long",
[458090] = "alarm",
[458099] = "alert",
[458104] = "alert",
Expand All @@ -84,4 +86,5 @@ BigWigs:AddSounds("Delve Rares", {
[459421] = "alert",
[461741] = {"alarm","underyou"},
[462686] = "alert",
["zekvir_breach"] = "long",
})
86 changes: 76 additions & 10 deletions Delves/Trash/Rares.lua
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,16 @@ mod:RegisterEnableMob(
227513, -- Tala
227514, -- Velo
227573, -- Anub'vir
217208 -- Zekvir
227471, -- Zekvir (unattackable)
217208 -- Zekvir (random spawn)
)

--------------------------------------------------------------------------------
-- Locals
--

local zekvirEngaged = false

--------------------------------------------------------------------------------
-- Localization
--
Expand All @@ -36,7 +43,12 @@ if L then
L.tala = "Tala"
L.velo = "Velo"
L.anubvir = "Anub'vir"
L.zekvir = "Zekvir (Random Spawn)"
L.zekvir = "Zekvir"
L.zekvirs_influence = "Zekvir's Influence"
L.zekvir_random = "Zekvir (Random Spawn)"
L.zekvir_breach = "Zekvir incoming"
L.zekvir_breach_desc = "Show an alert when Zekvir is spawning in the Delve."
L.zekvir_breach_icon = "INV_Achievement_RaidNerubian_NerubianHulk"
end

--------------------------------------------------------------------------------
Expand Down Expand Up @@ -84,7 +96,11 @@ function mod:GetOptions()
458099, -- Grasping Darkness
-- Anub'vir
449038, -- Impaling Spikes
-- Zekvir's Influence
457880, -- Ascension
457448, -- Shadow Eruption
-- Zekvir
"zekvir_breach",
450519, -- Angler's Web
450492, -- Horrendous Roar
450505, -- Enfeebling Spittle
Expand All @@ -99,7 +115,8 @@ function mod:GetOptions()
[458104] = L.tala,
[458090] = L.velo,
[449038] = L.anubvir,
[450519] = L.zekvir,
[457880] = L.zekvirs_influence,
["zekvir_breach"] = L.zekvir_random,
},{
[445781] = CL.frontal_cone, -- Lava Blast (Frontal Cone)
[415253] = CL.frontal_cone, -- Fungal Breath (Frontal Cone)
Expand Down Expand Up @@ -164,14 +181,19 @@ function mod:OnBossEnable()
self:Log("SPELL_CAST_START", "ImpalingSpikes", 449038)
self:Death("AnubvirDeath", 227573)

-- Zekvir
-- Zekvir's Influence
self:Log("SPELL_CAST_START", "Ascension", 457880) -- cast by any Zekvir-empowered mob
self:Log("SPELL_CAST_START", "ShadowEruption", 457448) -- cast by any Zekvir-empowered mob
self:Log("SPELL_CAST_START", "AnglersWebImage", 457881) -- cast by untargetable Zekvir 227471

-- Zekvir (random spawn)
self:RegisterEvent("CHAT_MSG_RAID_BOSS_EMOTE") -- Zekvir incoming or Zekvir leaving
self:Log("SPELL_CAST_START", "EnfeeblingSpittle", 450505)
self:Log("SPELL_INTERRUPT", "EnfeeblingSpittleInterrupt", 450505)
self:Log("SPELL_CAST_SUCCESS", "EnfeeblingSpittleSuccess", 450505)
self:Log("SPELL_AURA_APPLIED", "EnfeeblingSpittleApplied", 450505)
self:Log("SPELL_CAST_START", "HorrendousRoar", 450492)
self:Log("SPELL_CAST_START", "AnglersWeb", 450519)
self:Death("ZekvirDeath", 217208)
end

--------------------------------------------------------------------------------
Expand Down Expand Up @@ -519,11 +541,54 @@ do
end
end

-- Zekvir's Influence

do
local prev = 0
function mod:Ascension(args)
if args.time - prev > 2.5 then
prev = args.time
self:Message(args.spellId, "yellow", CL.casting:format(args.spellName))
self:PlaySound(args.spellId, "long")
end
end
end

do
local prev = 0
function mod:ShadowEruption(args)
if args.time - prev > 2.5 then
prev = args.time
self:Message(args.spellId, "orange")
self:PlaySound(args.spellId, "alarm")
end
end
end

function mod:AnglersWebImage()
self:Message(450519, "orange")
self:PlaySound(450519, "alarm")
end

-- Zekvir

do
local timer

function mod:CHAT_MSG_RAID_BOSS_EMOTE(_, msg)
-- [CHAT_MSG_RAID_BOSS_EMOTE] |TInterface\\ICONS\\INV_Achievement_RaidNerubian_NerubianHulk.BLP:36|t Zekvir has breached the Delve!#Zekvir
-- [CHAT_MSG_RAID_BOSS_EMOTE] |TInterface\\ICONS\\INV_Achievement_RaidNerubian_NerubianHulk.BLP:36|t Zekvir burrows into the ground and escapes!#Zekvir
if msg:find("INV_Achievement_RaidNerubian_NerubianHulk", nil, true) then
if not zekvirEngaged then
zekvirEngaged = true
self:Message("zekvir_breach", "cyan", CL.incoming:format(L.zekvir), L.zekvir_breach_icon)
self:PlaySound("zekvir_breach", "long")
else
self:ZekvirRetreat()
end
end
end

function mod:EnfeeblingSpittle(args)
if self:MobId(args.sourceGUID) == 217208 then -- Zekvir rare spawn
self:Message(args.spellId, "red", CL.casting:format(args.spellName))
Expand All @@ -538,7 +603,7 @@ do
timer = nil
end
self:CDBar(450505, 15.3)
timer = self:ScheduleTimer("ZekvirDeath", 30)
timer = self:ScheduleTimer("ZekvirRetreat", 30)
end
end

Expand All @@ -549,7 +614,7 @@ do
timer = nil
end
self:CDBar(args.spellId, 15.3)
timer = self:ScheduleTimer("ZekvirDeath", 30)
timer = self:ScheduleTimer("ZekvirRetreat", 30)
end
end

Expand All @@ -570,7 +635,7 @@ do
end
self:Message(args.spellId, "yellow", CL.fear)
self:CDBar(args.spellId, 18.2, CL.fear)
timer = self:ScheduleTimer("ZekvirDeath", 30)
timer = self:ScheduleTimer("ZekvirRetreat", 30)
self:PlaySound(args.spellId, "alarm")
end
end
Expand All @@ -583,12 +648,13 @@ do
end
self:Message(args.spellId, "orange")
self:CDBar(args.spellId, 23.1)
timer = self:ScheduleTimer("ZekvirDeath", 30)
timer = self:ScheduleTimer("ZekvirRetreat", 30)
self:PlaySound(args.spellId, "alarm")
end
end

function mod:ZekvirDeath()
function mod:ZekvirRetreat()
zekvirEngaged = false
if timer then
self:CancelTimer(timer)
timer = nil
Expand Down
6 changes: 6 additions & 0 deletions Delves/Trash/Underkeep.lua
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,12 @@ function mod:OnBossEnable()

-- Web Marauder
self:Log("SPELL_CAST_START", "GossamerWebbing", 453149)

-- also enable the Rares module
local raresModule = BigWigs:GetBossModule("Delve Rares", true)
if raresModule then
raresModule:Enable()
end
end

--------------------------------------------------------------------------------
Expand Down

0 comments on commit a5ca4ed

Please sign in to comment.