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/Trash/Nightfall: Add trash module #1036

Merged
merged 1 commit into from
Jun 8, 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
4 changes: 4 additions & 0 deletions Delves/Trash/Locales/deDE.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ end

L = BigWigs:NewBossLocale("Nightfall Delve Trash", "deDE")
if L then
--L.dark_bombardier = "Dark Bombardier"
--L.nightfall_inquisitor = "Nightfall Inquisitor"
--L.devouring_shade = "Devouring Shade"
--L.weeping_shade = "Weeping Shade"
end

L = BigWigs:NewBossLocale("The Underkeep Trash", "deDE")
Expand Down
4 changes: 4 additions & 0 deletions Delves/Trash/Locales/esES.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ end

L = BigWigs:NewBossLocale("Nightfall Delve Trash", "esES") or BigWigs:NewBossLocale("Nightfall Delve Trash", "esMX")
if L then
--L.dark_bombardier = "Dark Bombardier"
--L.nightfall_inquisitor = "Nightfall Inquisitor"
--L.devouring_shade = "Devouring Shade"
--L.weeping_shade = "Weeping Shade"
end

L = BigWigs:NewBossLocale("The Underkeep Trash", "esES") or BigWigs:NewBossLocale("The Underkeep Trash", "esMX")
Expand Down
4 changes: 4 additions & 0 deletions Delves/Trash/Locales/frFR.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ end

L = BigWigs:NewBossLocale("Nightfall Delve Trash", "frFR")
if L then
--L.dark_bombardier = "Dark Bombardier"
--L.nightfall_inquisitor = "Nightfall Inquisitor"
--L.devouring_shade = "Devouring Shade"
--L.weeping_shade = "Weeping Shade"
end

L = BigWigs:NewBossLocale("The Underkeep Trash", "frFR")
Expand Down
4 changes: 4 additions & 0 deletions Delves/Trash/Locales/itIT.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ end

L = BigWigs:NewBossLocale("Nightfall Delve Trash", "itIT")
if L then
--L.dark_bombardier = "Dark Bombardier"
--L.nightfall_inquisitor = "Nightfall Inquisitor"
--L.devouring_shade = "Devouring Shade"
--L.weeping_shade = "Weeping Shade"
end

L = BigWigs:NewBossLocale("The Underkeep Trash", "itIT")
Expand Down
4 changes: 4 additions & 0 deletions Delves/Trash/Locales/koKR.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ end

L = BigWigs:NewBossLocale("Nightfall Delve Trash", "koKR")
if L then
--L.dark_bombardier = "Dark Bombardier"
--L.nightfall_inquisitor = "Nightfall Inquisitor"
--L.devouring_shade = "Devouring Shade"
--L.weeping_shade = "Weeping Shade"
end

L = BigWigs:NewBossLocale("The Underkeep Trash", "koKR")
Expand Down
4 changes: 4 additions & 0 deletions Delves/Trash/Locales/ptBR.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ end

L = BigWigs:NewBossLocale("Nightfall Delve Trash", "ptBR")
if L then
--L.dark_bombardier = "Dark Bombardier"
--L.nightfall_inquisitor = "Nightfall Inquisitor"
--L.devouring_shade = "Devouring Shade"
--L.weeping_shade = "Weeping Shade"
end

L = BigWigs:NewBossLocale("The Underkeep Trash", "ptBR")
Expand Down
4 changes: 4 additions & 0 deletions Delves/Trash/Locales/ruRU.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ end

L = BigWigs:NewBossLocale("Nightfall Delve Trash", "ruRU")
if L then
--L.dark_bombardier = "Dark Bombardier"
--L.nightfall_inquisitor = "Nightfall Inquisitor"
--L.devouring_shade = "Devouring Shade"
--L.weeping_shade = "Weeping Shade"
end

L = BigWigs:NewBossLocale("The Underkeep Trash", "ruRU")
Expand Down
4 changes: 4 additions & 0 deletions Delves/Trash/Locales/zhCN.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ end

L = BigWigs:NewBossLocale("Nightfall Delve Trash", "zhCN")
if L then
--L.dark_bombardier = "Dark Bombardier"
--L.nightfall_inquisitor = "Nightfall Inquisitor"
--L.devouring_shade = "Devouring Shade"
--L.weeping_shade = "Weeping Shade"
end

L = BigWigs:NewBossLocale("The Underkeep Trash", "zhCN")
Expand Down
4 changes: 4 additions & 0 deletions Delves/Trash/Locales/zhTW.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ end

L = BigWigs:NewBossLocale("Nightfall Delve Trash", "zhTW")
if L then
--L.dark_bombardier = "Dark Bombardier"
--L.nightfall_inquisitor = "Nightfall Inquisitor"
--L.devouring_shade = "Devouring Shade"
--L.weeping_shade = "Weeping Shade"
end

L = BigWigs:NewBossLocale("The Underkeep Trash", "zhTW")
Expand Down
65 changes: 62 additions & 3 deletions Delves/Trash/Nightfall.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,29 +7,88 @@ local mod, CL = BigWigs:NewBoss("Nightfall Delve Trash", 2686) -- Nightfall Sanc
if not mod then return end
mod.displayName = CL.trash
mod:RegisterEnableMob(
217151, -- Dark Bombardier
217518, -- Nightfall Inquisitor
217870, -- Devouring Shade
217268 -- Weeping Shade
)

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

--local L = mod:GetLocale()
--if L then
--end
local L = mod:GetLocale()
if L then
L.dark_bombardier = "Dark Bombardier"
L.nightfall_inquisitor = "Nightfall Inquisitor"
L.devouring_shade = "Devouring Shade"
L.weeping_shade = "Weeping Shade"
end

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

function mod:GetOptions()
return {
-- Dark Bombardier
441129, -- Spotted!
-- Nightfall Inquisitor
434740, -- Shadow Barrier
-- Devouring Shade
443292, -- Umbral Slam
-- Weeping Shade
434281, -- Echo of Renilash
}, {
[441129] = L.dark_bombardier,
[434740] = L.nightfall_inquisitor,
[443292] = L.devouring_shade,
[434281] = L.weeping_shade,
}
end

function mod:OnBossEnable()
-- Dark Bombardier
self:Log("SPELL_AURA_APPLIED", "Spotted", 441129)

-- Nightfall Inquisitor
self:Log("SPELL_CAST_START", "ShadowBarrier", 434740)

-- Devouring Shade
self:Log("SPELL_CAST_START", "UmbralSlam", 443292)

-- Weeping Shade
self:Log("SPELL_CAST_START", "EchoOfRenilash", 434281)
end

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

-- Dark Bombardier

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

-- Nightfall Inquisitor

function mod:ShadowBarrier(args)
self:Message(args.spellId, "yellow")
self:PlaySound(args.spellId, "info")
end

-- Devouring Shade

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

-- Weeping Shade

function mod:EchoOfRenilash(args)
self:Message(args.spellId, "yellow")
self:PlaySound(args.spellId, "alarm")
end
4 changes: 4 additions & 0 deletions Delves/Trash/Options/Colors.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ BigWigs:AddColors("Nerubian Delve Trash", {
})

BigWigs:AddColors("Nightfall Delve Trash", {
[434281] = "yellow",
[434740] = "yellow",
[441129] = {"blue","red"},
[443292] = "orange",
})

BigWigs:AddColors("The Underkeep Trash", {
Expand Down
4 changes: 4 additions & 0 deletions Delves/Trash/Options/Sounds.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ BigWigs:AddSounds("Nerubian Delve Trash", {
})

BigWigs:AddSounds("Nightfall Delve Trash", {
[434281] = "alarm",
[434740] = "info",
[441129] = "alarm",
[443292] = "alarm",
})

BigWigs:AddSounds("The Underkeep Trash", {
Expand Down