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

Delves/ZekvirsLair/Zekvir: Add boss module #1146

Merged
merged 4 commits into from
Sep 10, 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
5 changes: 5 additions & 0 deletions Delves/Locales/deDE.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
local L = BigWigs:NewBossLocale("Zekvir", "deDE")
if not L then return end
if L then
L.zekvir = "Zekvir"
end
5 changes: 5 additions & 0 deletions Delves/Locales/esES.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
local L = BigWigs:NewBossLocale("Zekvir", "esES")
if not L then return end
if L then
L.zekvir = "Zekvir"
end
5 changes: 5 additions & 0 deletions Delves/Locales/esMX.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
local L = BigWigs:NewBossLocale("Zekvir", "esMX")
if not L then return end
if L then
L.zekvir = "Zekvir"
end
5 changes: 5 additions & 0 deletions Delves/Locales/frFR.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
local L = BigWigs:NewBossLocale("Zekvir", "frFR")
if not L then return end
if L then
L.zekvir = "Zekvir"
end
5 changes: 5 additions & 0 deletions Delves/Locales/itIT.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
local L = BigWigs:NewBossLocale("Zekvir", "itIT")
if not L then return end
if L then
L.zekvir = "Zekvir"
end
5 changes: 5 additions & 0 deletions Delves/Locales/koKR.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
local L = BigWigs:NewBossLocale("Zekvir", "koKR")
if not L then return end
if L then
L.zekvir = "제크비르"
end
15 changes: 15 additions & 0 deletions Delves/Locales/locales.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<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="deDE.lua"/>
<Script file="esES.lua"/>
<Script file="esMX.lua"/>
<Script file="frFR.lua"/>
<Script file="itIT.lua"/>
<Script file="koKR.lua"/>
<Script file="ptBR.lua"/>
<Script file="ruRU.lua"/>
<Script file="zhCN.lua"/>
<Script file="zhTW.lua"/>

</Ui>
5 changes: 5 additions & 0 deletions Delves/Locales/ptBR.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
local L = BigWigs:NewBossLocale("Zekvir", "ptBR")
if not L then return end
if L then
L.zekvir = "Zekvir"
end
5 changes: 5 additions & 0 deletions Delves/Locales/ruRU.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
local L = BigWigs:NewBossLocale("Zekvir", "ruRU")
if not L then return end
if L then
L.zekvir = "Зеквир"
end
5 changes: 5 additions & 0 deletions Delves/Locales/zhCN.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
local L = BigWigs:NewBossLocale("Zekvir", "zhCN")
if not L then return end
if L then
L.zekvir = "泽克维尔"
end
5 changes: 5 additions & 0 deletions Delves/Locales/zhTW.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
local L = BigWigs:NewBossLocale("Zekvir", "zhTW")
if not L then return end
if L then
L.zekvir = "澤克維爾"
end
8 changes: 8 additions & 0 deletions Delves/ZekvirsLair/Options/Colors.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

BigWigs:AddColors("Zekvir", {
[450451] = "orange",
[450492] = "yellow",
[450505] = "red",
[450519] = "red",
[450568] = "cyan",
})
8 changes: 8 additions & 0 deletions Delves/ZekvirsLair/Options/Sounds.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

BigWigs:AddSounds("Zekvir", {
[450451] = "alarm",
[450492] = "alarm",
[450505] = "alert",
[450519] = "alarm",
[450568] = "long",
})
7 changes: 7 additions & 0 deletions Delves/ZekvirsLair/Options/options.xml
Original file line number Diff line number Diff line change
@@ -0,0 +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="Colors.lua"/>
<Script file="Sounds.lua"/>

</Ui>
105 changes: 105 additions & 0 deletions Delves/ZekvirsLair/Zekvir.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
--------------------------------------------------------------------------------
-- Module Declaration
--

local mod, CL = BigWigs:NewBoss("Zekvir", 2682)
if not mod then return end
mod:RegisterEnableMob(225204) -- Zekvir
mod:SetEncounterID(2987)
mod:SetRespawnTime(15)
mod:SetAllowWin(true)

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

local callWebTerrorCount = 1

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

local L = mod:GetLocale()
if L then
L.zekvir = "Zekvir"
end

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

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

function mod:GetOptions()
return {
450451, -- Claw Smash
450505, -- Enfeebling Spittle
450492, -- Horrendous Roar
450568, -- Call Web Terror
450519, -- Angler's Web
}
end

function mod:OnBossEnable()
self:Log("SPELL_CAST_START", "ClawSmash", 450451)
self:Log("SPELL_CAST_START", "EnfeeblingSpittle", 450505)
self:Log("SPELL_INTERRUPT", "EnfeeblingSpittleInterrupt", 450505)
self:Log("SPELL_CAST_SUCCESS", "EnfeeblingSpittleSuccess", 450505)
self:Log("SPELL_CAST_START", "HorrendousRoar", 450492)
self:Log("SPELL_CAST_START", "CallWebTerror", 450568)
self:Log("SPELL_CAST_START", "AnglersWeb", 450519)
end

function mod:OnEngage()
callWebTerrorCount = 1
self:CDBar(450451, 5.1) -- Claw Smash
self:CDBar(450505, 8.4) -- Enfeebling Spittle
self:CDBar(450492, 10.0) -- Horrendous Roar
self:CDBar(450568, 18.5, CL.count:format(self:SpellName(450568), callWebTerrorCount)) -- Call Web Terror
self:CDBar(450519, 20.9) -- Angler's Web
end

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

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

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

function mod:EnfeeblingSpittleInterrupt()
self:CDBar(450505, 15.3)
end

function mod:EnfeeblingSpittleSuccess(args)
self:CDBar(args.spellId, 15.3)
end

function mod:HorrendousRoar(args)
self:Message(args.spellId, "yellow")
self:CDBar(args.spellId, 20.6)
self:PlaySound(args.spellId, "alarm")
end

function mod:CallWebTerror(args)
self:StopBar(CL.count:format(args.spellName, callWebTerrorCount))
self:Message(args.spellId, "cyan", CL.count:format(args.spellName, callWebTerrorCount))
callWebTerrorCount = callWebTerrorCount + 1
self:CDBar(args.spellId, 41.3, CL.count:format(args.spellName, callWebTerrorCount))
self:PlaySound(args.spellId, "long")
end

function mod:AnglersWeb(args)
self:Message(args.spellId, "red")
self:CDBar(args.spellId, 26.7) -- TODO might be a pattern
self:PlaySound(args.spellId, "alarm")
end
8 changes: 8 additions & 0 deletions Delves/ZekvirsLair/modules.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<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="Zekvir.lua"/>

<Include file="Options\options.xml"/>

</Ui>
3 changes: 3 additions & 0 deletions Delves/modules.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
<Include file="TheSpiralWeave\modules.xml"/>
<Include file="TekRethanAbyss\modules.xml"/>
<Include file="TheUnderkeep\modules.xml"/>
<Include file="ZekvirsLair\modules.xml"/>
<Include file="Trash\modules.xml"/>

<Include file="Locales\locales.xml"/>

</Ui>
4 changes: 2 additions & 2 deletions LittleWigs_Mainline.toc
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@
## Version: @project-version@

## X-BigWigs-Minimum: 356
## X-BigWigs-LoadOn-InstanceId: 2648,2649,2651,2652,2660,2661,2662,2669, 2710, 2664,2679,2680,2681,2683,2684,2685,2686,2687,2688,2689,2690
## X-BigWigs-LoadOn-InstanceId: 2648,2649,2651,2652,2660,2661,2662,2669, 2710, 2664,2679,2680,2681,2682,2683,2684,2685,2686,2687,2688,2689,2690
#@do-not-package@
## X-LittleWigs-Repo: 1
## X-BigWigs-ExtraMenu: 1716
## X-BigWigs-NoMenu: 1616, 1673, 1684, 1698, 1702, 1703, 1710
## X-BigWigs-LoadOn-InstanceId: 269,540,542,543,545,546,547,552,553,554,555,556,557,558,560,585, 536,574,575,576,578,595,599,600,601,602,604,608,619,632,650,658,668, 33,36,568,643,644,645,657,670,725,755,859,938,939,940, 959,960,961,962,994,1001,1004,1007,1011,1112, 1175,1176,1182,1195,1208,1209,1279,1358, 1456,1466,1477,1458,1492,1493,1501,1516,1544,1571,1616,1651,1673,1677,1684,1698,1702,1703,1710,1753, 1594,1754,1762,1763,1771,1822,1841,1862,1864,1877,2097,2212,2213, 2284,2285,2286,2287,2289,2290,2291,2293,2441, 2520,2527,2519,2521,2526,2515,2516,2451,2579, 2648,2649,2651,2652,2660,2661,2662,2669, 2710, 2664,2679,2680,2681,2683,2684,2685,2686,2687,2688,2689,2690
## X-BigWigs-LoadOn-InstanceId: 269,540,542,543,545,546,547,552,553,554,555,556,557,558,560,585, 536,574,575,576,578,595,599,600,601,602,604,608,619,632,650,658,668, 33,36,568,643,644,645,657,670,725,755,859,938,939,940, 959,960,961,962,994,1001,1004,1007,1011,1112, 1175,1176,1182,1195,1208,1209,1279,1358, 1456,1466,1477,1458,1492,1493,1501,1516,1544,1571,1616,1651,1673,1677,1684,1698,1702,1703,1710,1753, 1594,1754,1762,1763,1771,1822,1841,1862,1864,1877,2097,2212,2213, 2284,2285,2286,2287,2289,2290,2291,2293,2441, 2520,2527,2519,2521,2526,2515,2516,2451,2579, 2648,2649,2651,2652,2660,2661,2662,2669, 2710, 2664,2679,2680,2681,2682,2683,2684,2685,2686,2687,2688,2689,2690
TBC\modules.xml
WotLK\modules.xml
Cataclysm\modules.xml
Expand Down