Skip to content

Commit

Permalink
Delves/TheSinkhole/Cragpie: Add boss module (#1177)
Browse files Browse the repository at this point in the history
  • Loading branch information
ntowle authored Oct 22, 2024
1 parent b1810e5 commit be18eb0
Show file tree
Hide file tree
Showing 14 changed files with 172 additions and 0 deletions.
109 changes: 109 additions & 0 deletions Delves/TheSinkhole/Cragpie.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
--------------------------------------------------------------------------------
-- Module Declaration
--

local mod, CL = BigWigs:NewBoss("Cragpie", 2687)
if not mod then return end
mod:RegisterEnableMob(220008) -- Cragpie
mod:SetEncounterID(3001)
mod:SetRespawnTime(15)
mod:SetAllowWin(true)

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

local nextCorrosiveBile = 0
local nextSwiftness = 0

--------------------------------------------------------------------------------
-- Localization
--

local L = mod:GetLocale()
if L then
L.cragpie = "Cragpie"
end

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

function mod:OnRegister()
self.displayName = L.cragpie
end

function mod:GetOptions()
return {
{470612, "DISPEL"}, -- Corrosive Bile
{359016, "DISPEL"}, -- Swiftness
390943, -- Electric Cataclysm
}
end

function mod:OnBossEnable()
self:Log("SPELL_CAST_START", "CorrosiveBile", 470612)
self:Log("SPELL_AURA_APPLIED", "CorrosiveBileApplied", 470612)
self:Log("SPELL_CAST_START", "Swiftness", 359016)
self:Log("SPELL_AURA_APPLIED", "SwiftnessApplied", 359016)
self:Log("SPELL_CAST_START", "ElectricCataclysm", 390943)
end

function mod:OnEngage()
local t = GetTime()
nextCorrosiveBile = t + 6.0
self:CDBar(470612, 6.0) -- Corrosive Bile
nextSwiftness = t + 12.1
self:CDBar(359016, 12.1) -- Swiftness
self:CDBar(390943, 20.2) -- Electric Cataclysm
end

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

function mod:CorrosiveBile(args)
local t = GetTime()
self:Message(args.spellId, "orange", CL.casting:format(args.spellName))
nextCorrosiveBile = t + 23.0
self:CDBar(args.spellId, 23.0)
self:PlaySound(args.spellId, "alert")
end

function mod:CorrosiveBileApplied(args)
if self:Dispeller("poison", nil, args.spellId) and self:Player(args.destFlags) then
self:TargetMessage(args.spellId, "orange", args.destName)
self:PlaySound(args.spellId, "info", nil, args.destName)
end
end

function mod:Swiftness(args)
local t = GetTime()
self:Message(args.spellId, "red", CL.casting:format(args.spellName))
nextSwiftness = t + 20.7
self:CDBar(args.spellId, 20.7)
self:PlaySound(args.spellId, "alert")
end

function mod:SwiftnessApplied(args)
if self:Dispeller("magic", true, args.spellId) and not self:Player(args.destFlags) then
self:Message(args.spellId, "red", CL.on:format(args.spellName, args.destName))
self:PlaySound(args.spellId, "info")
end
end

function mod:ElectricCataclysm(args)
local t = GetTime()
self:Message(args.spellId, "yellow")
self:CDBar(args.spellId, 30.3)
-- 8.5s before another spell can be cast
if nextCorrosiveBile - t < 8.5 then
nextCorrosiveBile = t + 8.5
self:CDBar(470612, {8.5, 23.0}) -- Corrosive Bile
end
if nextSwiftness - t < 8.5 then
nextSwiftness = t + 8.5
self:CDBar(359016, {8.5, 20.7}) -- Swiftness
end
self:PlaySound(args.spellId, "long")
end
5 changes: 5 additions & 0 deletions Delves/TheSinkhole/Locales/deDE.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,8 @@ if L then
L.guardian_tentacle = "Wächtertentakel"
L.slamming_tentacles = "Schlagende Tentakel" -- plural
end

L = BigWigs:NewBossLocale("Cragpie", "deDE")
if L then
L.cragpie = "Felskruste"
end
5 changes: 5 additions & 0 deletions Delves/TheSinkhole/Locales/esES.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,8 @@ if L then
L.guardian_tentacle = "Tentáculo guardián"
--L.slamming_tentacles = "Slamming Tentacles" -- plural
end

L = BigWigs:NewBossLocale("Cragpie", "esES")
if L then
L.cragpie = "Peñasqui"
end
5 changes: 5 additions & 0 deletions Delves/TheSinkhole/Locales/esMX.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,8 @@ if L then
L.guardian_tentacle = "Tentáculo guardián"
--L.slamming_tentacles = "Slamming Tentacles" -- plural
end

L = BigWigs:NewBossLocale("Cragpie", "esMX")
if L then
L.cragpie = "Peñasqui"
end
5 changes: 5 additions & 0 deletions Delves/TheSinkhole/Locales/frFR.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,8 @@ if L then
L.guardian_tentacle = "Tentacule gardien"
L.slamming_tentacles = "Tentacules percutants" -- plural
end

L = BigWigs:NewBossLocale("Cragpie", "frFR")
if L then
L.cragpie = "Faloise"
end
5 changes: 5 additions & 0 deletions Delves/TheSinkhole/Locales/itIT.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,8 @@ if L then
L.guardian_tentacle = "Tentacolo Guardiano"
--L.slamming_tentacles = "Slamming Tentacles" -- plural
end

L = BigWigs:NewBossLocale("Cragpie", "itIT")
if L then
L.cragpie = "Falesio"
end
5 changes: 5 additions & 0 deletions Delves/TheSinkhole/Locales/koKR.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,8 @@ if L then
--L.guardian_tentacle = "Guardian Tentacle"
--L.slamming_tentacles = "Slamming Tentacles" -- plural
end

L = BigWigs:NewBossLocale("Cragpie", "koKR")
if L then
L.cragpie = "크랙파이"
end
5 changes: 5 additions & 0 deletions Delves/TheSinkhole/Locales/ptBR.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,8 @@ if L then
L.guardian_tentacle = "Tentáculo Guardião"
--L.slamming_tentacles = "Slamming Tentacles" -- plural
end

L = BigWigs:NewBossLocale("Cragpie", "ptBR")
if L then
L.cragpie = "Pedraço"
end
5 changes: 5 additions & 0 deletions Delves/TheSinkhole/Locales/ruRU.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,8 @@ if L then
L.guardian_tentacle = "Щупальце-страж"
--L.slamming_tentacles = "Slamming Tentacles" -- plural
end

L = BigWigs:NewBossLocale("Cragpie", "ruRU")
if L then
L.cragpie = "Кремезябр"
end
5 changes: 5 additions & 0 deletions Delves/TheSinkhole/Locales/zhCN.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,8 @@ if L then
L.guardian_tentacle = "重击触须" --不知道为什么CN用了一个名字,下周在检查次
L.slamming_tentacles = "重击触须" -- plural
end

L = BigWigs:NewBossLocale("Cragpie", "zhCN")
if L then
L.cragpie = "克拉格派"
end
5 changes: 5 additions & 0 deletions Delves/TheSinkhole/Locales/zhTW.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,8 @@ if L then
--L.guardian_tentacle = "Guardian Tentacle"
--L.slamming_tentacles = "Slamming Tentacles" -- plural
end

L = BigWigs:NewBossLocale("Cragpie", "zhTW")
if L then
L.cragpie = "克拉皮"
end
6 changes: 6 additions & 0 deletions Delves/TheSinkhole/Options/Colors.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@

BigWigs:AddColors("Cragpie", {
[359016] = "red",
[390943] = "yellow",
[470612] = {"blue","orange"},
})

BigWigs:AddColors("Leviathan Caller", {
[442422] = {"green","red"},
[446079] = "cyan",
Expand Down
6 changes: 6 additions & 0 deletions Delves/TheSinkhole/Options/Sounds.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@

BigWigs:AddSounds("Cragpie", {
[359016] = {"alert","info"},
[390943] = "long",
[470612] = {"alert","info"},
})

BigWigs:AddSounds("Leviathan Caller", {
[442422] = {"info","warning"},
[446079] = "long",
Expand Down
1 change: 1 addition & 0 deletions Delves/TheSinkhole/modules.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/
..\FrameXML\UI.xsd">

<Script file="Cragpie.lua"/>
<Script file="LeviathanCaller.lua"/>
<Script file="Murkna.lua"/>

Expand Down

0 comments on commit be18eb0

Please sign in to comment.