diff --git a/Delves/TheSinkhole/Cragpie.lua b/Delves/TheSinkhole/Cragpie.lua new file mode 100644 index 000000000..d05848cdd --- /dev/null +++ b/Delves/TheSinkhole/Cragpie.lua @@ -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 diff --git a/Delves/TheSinkhole/Locales/deDE.lua b/Delves/TheSinkhole/Locales/deDE.lua index 24e2daaf6..b883ba1b7 100644 --- a/Delves/TheSinkhole/Locales/deDE.lua +++ b/Delves/TheSinkhole/Locales/deDE.lua @@ -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 diff --git a/Delves/TheSinkhole/Locales/esES.lua b/Delves/TheSinkhole/Locales/esES.lua index ca9dc8a52..06f30927f 100644 --- a/Delves/TheSinkhole/Locales/esES.lua +++ b/Delves/TheSinkhole/Locales/esES.lua @@ -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 diff --git a/Delves/TheSinkhole/Locales/esMX.lua b/Delves/TheSinkhole/Locales/esMX.lua index 82d2eab47..84ace000f 100644 --- a/Delves/TheSinkhole/Locales/esMX.lua +++ b/Delves/TheSinkhole/Locales/esMX.lua @@ -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 diff --git a/Delves/TheSinkhole/Locales/frFR.lua b/Delves/TheSinkhole/Locales/frFR.lua index f199012a6..cd71444ff 100644 --- a/Delves/TheSinkhole/Locales/frFR.lua +++ b/Delves/TheSinkhole/Locales/frFR.lua @@ -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 diff --git a/Delves/TheSinkhole/Locales/itIT.lua b/Delves/TheSinkhole/Locales/itIT.lua index 1bb4ab1c9..55e7343db 100644 --- a/Delves/TheSinkhole/Locales/itIT.lua +++ b/Delves/TheSinkhole/Locales/itIT.lua @@ -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 diff --git a/Delves/TheSinkhole/Locales/koKR.lua b/Delves/TheSinkhole/Locales/koKR.lua index 09b6a7284..bece6bc9a 100644 --- a/Delves/TheSinkhole/Locales/koKR.lua +++ b/Delves/TheSinkhole/Locales/koKR.lua @@ -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 diff --git a/Delves/TheSinkhole/Locales/ptBR.lua b/Delves/TheSinkhole/Locales/ptBR.lua index afc325a43..bc222ef04 100644 --- a/Delves/TheSinkhole/Locales/ptBR.lua +++ b/Delves/TheSinkhole/Locales/ptBR.lua @@ -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 diff --git a/Delves/TheSinkhole/Locales/ruRU.lua b/Delves/TheSinkhole/Locales/ruRU.lua index b4184375a..2e4624ecb 100644 --- a/Delves/TheSinkhole/Locales/ruRU.lua +++ b/Delves/TheSinkhole/Locales/ruRU.lua @@ -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 diff --git a/Delves/TheSinkhole/Locales/zhCN.lua b/Delves/TheSinkhole/Locales/zhCN.lua index 546ac8a4f..b17cef436 100644 --- a/Delves/TheSinkhole/Locales/zhCN.lua +++ b/Delves/TheSinkhole/Locales/zhCN.lua @@ -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 diff --git a/Delves/TheSinkhole/Locales/zhTW.lua b/Delves/TheSinkhole/Locales/zhTW.lua index 265ae9299..2f62753ca 100644 --- a/Delves/TheSinkhole/Locales/zhTW.lua +++ b/Delves/TheSinkhole/Locales/zhTW.lua @@ -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 diff --git a/Delves/TheSinkhole/Options/Colors.lua b/Delves/TheSinkhole/Options/Colors.lua index 04f97cb6a..40078db02 100644 --- a/Delves/TheSinkhole/Options/Colors.lua +++ b/Delves/TheSinkhole/Options/Colors.lua @@ -1,4 +1,10 @@ +BigWigs:AddColors("Cragpie", { + [359016] = "red", + [390943] = "yellow", + [470612] = {"blue","orange"}, +}) + BigWigs:AddColors("Leviathan Caller", { [442422] = {"green","red"}, [446079] = "cyan", diff --git a/Delves/TheSinkhole/Options/Sounds.lua b/Delves/TheSinkhole/Options/Sounds.lua index 78ca23b86..64c413207 100644 --- a/Delves/TheSinkhole/Options/Sounds.lua +++ b/Delves/TheSinkhole/Options/Sounds.lua @@ -1,4 +1,10 @@ +BigWigs:AddSounds("Cragpie", { + [359016] = {"alert","info"}, + [390943] = "long", + [470612] = {"alert","info"}, +}) + BigWigs:AddSounds("Leviathan Caller", { [442422] = {"info","warning"}, [446079] = "long", diff --git a/Delves/TheSinkhole/modules.xml b/Delves/TheSinkhole/modules.xml index 34b99e998..33e639c36 100644 --- a/Delves/TheSinkhole/modules.xml +++ b/Delves/TheSinkhole/modules.xml @@ -1,6 +1,7 @@ +