Skip to content

Commit

Permalink
CrystalVale_Classic/Thunderaan: Import module
Browse files Browse the repository at this point in the history
  • Loading branch information
funkydude committed Sep 27, 2024
1 parent 82c53cf commit 073df81
Show file tree
Hide file tree
Showing 17 changed files with 211 additions and 1 deletion.
3 changes: 2 additions & 1 deletion BigWigs_Classic_Vanilla.toc
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
## X-Curse-Project-ID: 50625
## X-WoWI-ID: 22095
## X-Wago-ID: rNkPgm6a
## X-BigWigs-LoadOn-InstanceId: 409, 469, 509, 531, 533, 309, 249, 48, 90, 109, 2789, 2791
## X-BigWigs-LoadOn-InstanceId: 409, 469, 509, 531, 533, 309, 249, 48, 90, 109, 2789, 2791, 2804
## X-BigWigs-ExtraMenu: -947
## X-BigWigs-LoadOn-WorldBoss: -1447, 6109, -1419, 12397, -1440, 14889, -1425, 14888, -1431, 14890, -1444, 14887
## X-BigWigs-Minimum: 350
Expand All @@ -52,3 +52,4 @@ Gnomeregan_Classic\modules.xml
SunkenTemple_Classic\modules.xml
TheTaintedScar_Classic\modules.xml
StormCliffs_Classic\modules.xml
CrystalVale_Classic\modules.xml
5 changes: 5 additions & 0 deletions CrystalVale_Classic/Locales/deDE.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
local L = BigWigs:NewBossLocale("Lord Kazzak Season of Discovery", "deDE")
if L then
L.bossName = "Prinz Donneraan"
--L.mender = "Storm Mender" -- NPC 231858
end
5 changes: 5 additions & 0 deletions CrystalVale_Classic/Locales/esES.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
local L = BigWigs:NewBossLocale("Lord Kazzak Season of Discovery", "esES")
if L then
L.bossName = "Príncipe Thunderaan"
--L.mender = "Storm Mender" -- NPC 231858
end
5 changes: 5 additions & 0 deletions CrystalVale_Classic/Locales/esMX.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
local L = BigWigs:NewBossLocale("Lord Kazzak Season of Discovery", "esMX")
if L then
L.bossName = "Príncipe Thunderaan"
--L.mender = "Storm Mender" -- NPC 231858
end
5 changes: 5 additions & 0 deletions CrystalVale_Classic/Locales/frFR.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
local L = BigWigs:NewBossLocale("Lord Kazzak Season of Discovery", "frFR")
if L then
L.bossName = "Prince Tonneraan"
--L.mender = "Storm Mender" -- NPC 231858
end
5 changes: 5 additions & 0 deletions CrystalVale_Classic/Locales/itIT.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
local L = BigWigs:NewBossLocale("Lord Kazzak Season of Discovery", "itIT")
if L then
L.bossName = "Principe Tuonelaar"
--L.mender = "Storm Mender" -- NPC 231858
end
5 changes: 5 additions & 0 deletions CrystalVale_Classic/Locales/koKR.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
local L = BigWigs:NewBossLocale("Lord Kazzak Season of Discovery", "koKR")
if L then
L.bossName = "왕자 썬더란"
--L.mender = "Storm Mender" -- NPC 231858
end
15 changes: 15 additions & 0 deletions CrystalVale_Classic/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 CrystalVale_Classic/Locales/ptBR.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
local L = BigWigs:NewBossLocale("Lord Kazzak Season of Discovery", "ptBR")
if L then
L.bossName = "Príncipe Trovejardus"
--L.mender = "Storm Mender" -- NPC 231858
end
5 changes: 5 additions & 0 deletions CrystalVale_Classic/Locales/ruRU.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
local L = BigWigs:NewBossLocale("Lord Kazzak Season of Discovery", "ruRU")
if L then
L.bossName = "Принц Громораан"
--L.mender = "Storm Mender" -- NPC 231858
end
5 changes: 5 additions & 0 deletions CrystalVale_Classic/Locales/zhCN.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
local L = BigWigs:NewBossLocale("Lord Kazzak Season of Discovery", "zhCN")
if L then
L.bossName = "桑德兰王子"
--L.mender = "Storm Mender" -- NPC 231858
end
5 changes: 5 additions & 0 deletions CrystalVale_Classic/Locales/zhTW.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
local L = BigWigs:NewBossLocale("Lord Kazzak Season of Discovery", "zhTW")
if L then
--L.bossName = "Prince Thunderaan"
--L.mender = "Storm Mender" -- NPC 231858
end
5 changes: 5 additions & 0 deletions CrystalVale_Classic/Options/Colors.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

BigWigs:AddColors("Lord Kazzak Season of Discovery", {
[21056] = {"blue","green","red","yellow"},
[21063] = {"blue","green","orange"},
})
5 changes: 5 additions & 0 deletions CrystalVale_Classic/Options/Sounds.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

BigWigs:AddSounds("Lord Kazzak Season of Discovery", {
[21056] = {"long","warning"},
[21063] = "alarm",
})
7 changes: 7 additions & 0 deletions CrystalVale_Classic/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>
118 changes: 118 additions & 0 deletions CrystalVale_Classic/Thunderaan.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
--------------------------------------------------------------------------------
-- Module Declaration
--

local mod, CL = BigWigs:NewBoss("Thunderaan Season of Discovery", 2804)
if not mod then return end
mod:RegisterEnableMob(231494)
mod:SetEncounterID(3079)
mod:SetAllowWin(true)

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

local L = mod:GetLocale()
if L then
L.bossName = "Prince Thunderaan"
L.mender = "Storm Mender" -- NPC 231858
end

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

function mod:GetOptions()
return {
{465700, "CASTBAR", "SAY", "SAY_COUNTDOWN", "ICON", "ME_ONLY_EMPHASIZE"}, -- Chain Lightning
466211, -- Tendrils of Air
466774, -- Cyclonic Winds
470866, -- Lightning Cloud
11642, -- Heal
},{
[465700] = L.bossName,
[11642] = L.mender,
}
end

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

function mod:OnBossEnable()
self:Log("SPELL_CAST_START", "ChainLightningStart", 465700)
self:Log("SPELL_CAST_SUCCESS", "ChainLightning", 465700)
self:Log("SPELL_AURA_APPLIED", "TendrilsOfAirApplied", 466211)
self:Log("SPELL_AURA_APPLIED_DOSE", "TendrilsOfAirAppliedDose", 466211)
self:Log("SPELL_CAST_SUCCESS", "CyclonicWinds", 466774)
self:Log("SPELL_AURA_APPLIED", "LightningCloudDamage", 470866)
self:Log("SPELL_PERIODIC_DAMAGE", "LightningCloudDamage", 470866)
self:Log("SPELL_PERIODIC_MISSED", "LightningCloudDamage", 470866)

self:Log("SPELL_CAST_START", "Heal", 11642)
self:Log("SPELL_INTERRUPT", "HealInterrupted", "*")
end

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

do
local function printTarget(self, name, guid, elapsed)
self:PrimaryIcon(465700, name)
self:TargetMessage(465700, "red", name)
if self:Me(guid) then
self:Say(465700, nil, nil, "Chain Lightning")
self:SayCountdown(465700, 3-elapsed, nil, 2)
self:PlaySound(465700, "warning", nil, name)
end
end

function mod:ChainLightningStart(args)
self:GetUnitTarget(printTarget, 0.5, args.sourceGUID)
self:CastBar(args.spellId, 3)
end
end

function mod:ChainLightning(args)
self:PrimaryIcon(args.spellId)
end

function mod:TendrilsOfAirApplied(args)
self:TargetMessage(args.spellId, "purple", args.destName)
self:PlaySound(args.spellId, "alarm", nil, args.destName)
end

function mod:TendrilsOfAirAppliedDose(args)
self:StackMessage(args.spellId, "purple", args.destName, args.amount, args.amount)
self:PlaySound(args.spellId, "alarm", nil, args.destName)
end

function mod:CyclonicWinds(args)
self:Message(args.spellId, "yellow", CL.on_group:format(args.spellName))
self:PlaySound(args.spellId, "info")
end

do
local prev = 0
function mod:LightningCloudDamage(args)
if self:Me(args.destGUID) and args.time - prev > 2 then
prev = args.time
self:PersonalMessage(args.spellId, "aboveyou")
self:PlaySound(args.spellId, "underyou")
end
end
end

function mod:Heal(args)
self:Message(args.spellId, "orange", CL.casting:format(args.spellName))
if self:Interrupter() then
self:PlaySound(args.spellId, "alert")
end
end

function mod:HealInterrupted(args)
if args.extraSpellName == self:SpellName(11642) then
self:Message(11642, "green", CL.interrupted_by:format(args.extraSpellName, self:ColorName(args.sourceName)))
end
end
9 changes: 9 additions & 0 deletions CrystalVale_Classic/modules.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<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="Thunderaan.lua"/>

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

</Ui>

0 comments on commit 073df81

Please sign in to comment.