Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WarWithin/TheStonevault/ForgeSpeakers: Add boss module #1048

Merged
merged 1 commit into from
Jun 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
91 changes: 89 additions & 2 deletions WarWithin/TheStonevault/ForgeSpeakers.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,26 +11,113 @@ mod:RegisterEnableMob(
)
mod:SetEncounterID(2888)
mod:SetRespawnTime(30)
mod:SetStage(1)

--------------------------------------------------------------------------------
-- Initialization
--

function mod:GetOptions()
return {

439577, -- Silenced Speaker
-- Speaker Brokk
445541, -- Activate Ventilation
430097, -- Molten Metal
428202, -- Scrap Song
-- Speaker Dorlita
428508, -- Deconstruction
{428711, "TANK"}, -- Molten Hammer
449167, -- Lava Expulsion
}, {
[445541] = -28459, -- Speaker Brokk
[428508] = -28461, -- Speaker Dorlita
}
end

function mod:OnBossEnable()
-- Stages
self:Log("SPELL_CAST_SUCCESS", "SilencedSpeaker", 439577)

-- Speaker Brokk
self:Log("SPELL_CAST_START", "ActivateVentilation", 445541)
self:Log("SPELL_CAST_START", "MoltenMetal", 430097)
self:Log("SPELL_CAST_START", "ScrapSong", 428202)

-- Speaker Dorlita
self:Log("SPELL_CAST_SUCCESS", "Deconstruction", 428508)
self:Log("SPELL_CAST_START", "MoltenHammer", 428711)
self:Log("SPELL_CAST_START", "LavaExpulsion", 449167)
end

function mod:OnEngage()

self:SetStage(1)
self:CDBar(430097, 4.5) -- Molten Metal
self:CDBar(428711, 6.9) -- Molten Hammer
self:CDBar(445541, 9.3) -- Activate Ventilation
self:CDBar(449167, 13.0) -- Lava Expulsion
self:CDBar(428202, 19.1) -- Scrap Song
self:CDBar(428508, 45.7) -- Deconstruction
end

--------------------------------------------------------------------------------
-- Event Handlers
--

-- Stages

function mod:SilencedSpeaker(args)
-- this is cast by the defeated boss on the remaining boss
if self:MobId(args.sourceGUID) == 213217 then -- Speaker Brokk defeated
self:StopBar(445541) -- Activate Ventilation
self:StopBar(430097) -- Molten Metal
self:StopBar(428202) -- Scrap Song
else -- Speaker Dorlita defeated
self:StopBar(428508) -- Deconstruction
self:StopBar(428711) -- Molten Hammer
self:StopBar(449167) -- Lava Expulsion
end
self:SetStage(2)
self:Message(args.spellId, "cyan", CL.onboss:format(args.spellName))
self:PlaySound(args.spellId, "long")
end

-- Speaker Brokk

function mod:ActivateVentilation(args)
self:Message(args.spellId, "orange")
self:PlaySound(args.spellId, "alarm")
self:CDBar(args.spellId, 34.0)
end

function mod:MoltenMetal(args)
self:Message(args.spellId, "red", CL.casting:format(args.spellName))
self:PlaySound(args.spellId, "alert")
self:CDBar(args.spellId, 9.7)
end

function mod:ScrapSong(args)
self:Message(args.spellId, "yellow")
self:PlaySound(args.spellId, "long")
self:CDBar(args.spellId, 49.6)
end

-- Speaker Dorlita

function mod:Deconstruction(args)
self:Message(args.spellId, "red")
self:PlaySound(args.spellId, "alarm")
self:CDBar(args.spellId, 46.1)
end

function mod:MoltenHammer(args)
self:Message(args.spellId, "purple")
self:PlaySound(args.spellId, "alert")
self:CDBar(args.spellId, 12.1)
end

function mod:LavaExpulsion(args)
-- doesn't seem possible to determine the target
self:Message(args.spellId, "orange")
self:PlaySound(args.spellId, "alarm")
self:CDBar(args.spellId, 17.0)
end
7 changes: 7 additions & 0 deletions WarWithin/TheStonevault/Options/Colors.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ BigWigs:AddColors("Skarmorak", {
})

BigWigs:AddColors("Forge Speakers", {
[428202] = "yellow",
[428508] = "red",
[428711] = "purple",
[430097] = "red",
[439577] = "cyan",
[445541] = "orange",
[449167] = "orange",
})

BigWigs:AddColors("High Speaker Eirich", {
Expand Down
7 changes: 7 additions & 0 deletions WarWithin/TheStonevault/Options/Sounds.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ BigWigs:AddSounds("Skarmorak", {
})

BigWigs:AddSounds("Forge Speakers", {
[428202] = "long",
[428508] = "alarm",
[428711] = "alert",
[430097] = "alert",
[439577] = "long",
[445541] = "alarm",
[449167] = "alarm",
})

BigWigs:AddSounds("High Speaker Eirich", {
Expand Down