Skip to content

Commit

Permalink
Delves/Trash/Fungarian: Add trash module (#1038)
Browse files Browse the repository at this point in the history
  • Loading branch information
ntowle authored Jun 8, 2024
1 parent d665dbb commit dd09abd
Show file tree
Hide file tree
Showing 12 changed files with 170 additions and 3 deletions.
116 changes: 113 additions & 3 deletions Delves/Trash/Fungarian.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,29 +7,139 @@ local mod, CL = BigWigs:NewBoss("Fungarian Delve Trash", {2664, 2679}) -- Fungal
if not mod then return end
mod.displayName = CL.trash
mod:RegisterEnableMob(
210677, -- Stoneguard Benston (Fungal Folly gossip NPC)
220293, -- Aliya Hillhelm (Mycomancer Cavern gossip NPC)
213434, -- Sporbit
225708, -- Sporbit (Bogpiper summon)
207456, -- Fungal Speartender
207468, -- Gnarled Reviver
210478, -- Infected Beast
207454 -- Fungal Gutter
)

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

--local L = mod:GetLocale()
--if L then
--end
local L = mod:GetLocale()
if L then
L.sporbit = "Sporbit"
L.fungal_speartender = "Fungal Speartender"
L.gnarled_reviver = "Gnarled Reviver"
L.infected_beast = "Infected Beast"
L.fungal_gutter = "Fungal Gutter"
end

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

local autotalk = mod:AddAutoTalkOption(true)
function mod:GetOptions()
return {
autotalk,
-- Sporbit
427710, -- Sporesplosion
-- Fungal Speartender
414944, -- Battle Roar
424891, -- Vine Spear
-- Gnarled Reviver
424773, -- Sporogenesis
-- Infected Beast
424798, -- Bloated Eruption
-- Fungal Gutter
424704, -- Vicious Stabs
}, {
[427710] = L.sporbit,
[414944] = L.fungal_speartender,
[424773] = L.gnarled_reviver,
[424798] = L.infected_beast,
[424704] = L.fungal_gutter,
}
end

function mod:OnBossEnable()
-- Autotalk
self:RegisterEvent("GOSSIP_SHOW")

-- Sporbit
self:Log("SPELL_CAST_START", "Sporespolosion", 427710)

-- Fungal Speartender
self:Log("SPELL_CAST_START", "BattleRoar", 414944)
self:Log("SPELL_CAST_START", "VineSpear", 424891)

-- Gnarled Reviver
self:Log("SPELL_CAST_START", "Sporogenesis", 424773)

-- Infected Beast
self:Log("SPELL_CAST_START", "BloatedEruption", 424798)

-- Fungal Gutter
self:Log("SPELL_CAST_START", "ViciousStabs", 424704)
end

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

-- Autotalk

function mod:GOSSIP_SHOW()
if self:GetOption(autotalk) then
if self:GetGossipID(111366) then -- Fungal Folly, start Delve
-- 111366:I'll dive into this cavern and get your friends back.
self:SelectGossipID(111366)
elseif self:GetGossipID(121536) then -- Mycomancer Cavern, start Delve
-- 121536:|cFF0000FF(Delve)|r I'll get your pigs back and make those fungarians pay for this.
self:SelectGossipID(121536)
end
end
end

-- Sporbit

do
local prev = 0
function mod:Sporespolosion(args)
local t = args.time
if t - prev > 2.5 then
prev = t
self:Message(args.spellId, "orange")
self:PlaySound(args.spellId, "alarm")
end
end
end

-- Fungal Speartender

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

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

-- Gnarled Reviver

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

-- Infected Beast

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

-- Fungal Gutter

function mod:ViciousStabs(args)
self:Message(args.spellId, "red")
self:PlaySound(args.spellId, "alarm")
end
5 changes: 5 additions & 0 deletions Delves/Trash/Locales/deDE.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
local L = BigWigs:NewBossLocale("Fungarian Delve Trash", "deDE")
if not L then return end
if L then
--L.sporbit = "Sporbit"
--L.fungal_speartender = "Fungal Speartender"
--L.gnarled_reviver = "Gnarled Reviver"
--L.infected_beast = "Infected Beast"
--L.fungal_gutter = "Fungal Gutter"
end

L = BigWigs:NewBossLocale("Kobold Delve Trash", "deDE")
Expand Down
5 changes: 5 additions & 0 deletions Delves/Trash/Locales/esES.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
local L = BigWigs:NewBossLocale("Fungarian Delve Trash", "esES") or BigWigs:NewBossLocale("Fungarian Delve Trash", "esMX")
if not L then return end
if L then
--L.sporbit = "Sporbit"
--L.fungal_speartender = "Fungal Speartender"
--L.gnarled_reviver = "Gnarled Reviver"
--L.infected_beast = "Infected Beast"
--L.fungal_gutter = "Fungal Gutter"
end

L = BigWigs:NewBossLocale("Kobold Delve Trash", "esES") or BigWigs:NewBossLocale("Kobold Delve Trash", "esMX")
Expand Down
5 changes: 5 additions & 0 deletions Delves/Trash/Locales/frFR.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
local L = BigWigs:NewBossLocale("Fungarian Delve Trash", "frFR")
if not L then return end
if L then
--L.sporbit = "Sporbit"
--L.fungal_speartender = "Fungal Speartender"
--L.gnarled_reviver = "Gnarled Reviver"
--L.infected_beast = "Infected Beast"
--L.fungal_gutter = "Fungal Gutter"
end

L = BigWigs:NewBossLocale("Kobold Delve Trash", "frFR")
Expand Down
5 changes: 5 additions & 0 deletions Delves/Trash/Locales/itIT.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
local L = BigWigs:NewBossLocale("Fungarian Delve Trash", "itIT")
if not L then return end
if L then
--L.sporbit = "Sporbit"
--L.fungal_speartender = "Fungal Speartender"
--L.gnarled_reviver = "Gnarled Reviver"
--L.infected_beast = "Infected Beast"
--L.fungal_gutter = "Fungal Gutter"
end

L = BigWigs:NewBossLocale("Kobold Delve Trash", "itIT")
Expand Down
5 changes: 5 additions & 0 deletions Delves/Trash/Locales/koKR.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
local L = BigWigs:NewBossLocale("Fungarian Delve Trash", "koKR")
if not L then return end
if L then
--L.sporbit = "Sporbit"
--L.fungal_speartender = "Fungal Speartender"
--L.gnarled_reviver = "Gnarled Reviver"
--L.infected_beast = "Infected Beast"
--L.fungal_gutter = "Fungal Gutter"
end

L = BigWigs:NewBossLocale("Kobold Delve Trash", "koKR")
Expand Down
5 changes: 5 additions & 0 deletions Delves/Trash/Locales/ptBR.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
local L = BigWigs:NewBossLocale("Fungarian Delve Trash", "ptBR")
if not L then return end
if L then
--L.sporbit = "Sporbit"
--L.fungal_speartender = "Fungal Speartender"
--L.gnarled_reviver = "Gnarled Reviver"
--L.infected_beast = "Infected Beast"
--L.fungal_gutter = "Fungal Gutter"
end

L = BigWigs:NewBossLocale("Kobold Delve Trash", "ptBR")
Expand Down
5 changes: 5 additions & 0 deletions Delves/Trash/Locales/ruRU.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
local L = BigWigs:NewBossLocale("Fungarian Delve Trash", "ruRU")
if not L then return end
if L then
--L.sporbit = "Sporbit"
--L.fungal_speartender = "Fungal Speartender"
--L.gnarled_reviver = "Gnarled Reviver"
--L.infected_beast = "Infected Beast"
--L.fungal_gutter = "Fungal Gutter"
end

L = BigWigs:NewBossLocale("Kobold Delve Trash", "ruRU")
Expand Down
5 changes: 5 additions & 0 deletions Delves/Trash/Locales/zhCN.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
local L = BigWigs:NewBossLocale("Fungarian Delve Trash", "zhCN")
if not L then return end
if L then
--L.sporbit = "Sporbit"
--L.fungal_speartender = "Fungal Speartender"
--L.gnarled_reviver = "Gnarled Reviver"
--L.infected_beast = "Infected Beast"
--L.fungal_gutter = "Fungal Gutter"
end

L = BigWigs:NewBossLocale("Kobold Delve Trash", "zhCN")
Expand Down
5 changes: 5 additions & 0 deletions Delves/Trash/Locales/zhTW.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
local L = BigWigs:NewBossLocale("Fungarian Delve Trash", "zhTW")
if not L then return end
if L then
--L.sporbit = "Sporbit"
--L.fungal_speartender = "Fungal Speartender"
--L.gnarled_reviver = "Gnarled Reviver"
--L.infected_beast = "Infected Beast"
--L.fungal_gutter = "Fungal Gutter"
end

L = BigWigs:NewBossLocale("Kobold Delve Trash", "zhTW")
Expand Down
6 changes: 6 additions & 0 deletions Delves/Trash/Options/Colors.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@

BigWigs:AddColors("Fungarian Delve Trash", {
[414944] = "red",
[424704] = "red",
[424773] = "red",
[424798] = "orange",
[424891] = "orange",
[427710] = "orange",
})

BigWigs:AddColors("Kobold Delve Trash", {
Expand Down
6 changes: 6 additions & 0 deletions Delves/Trash/Options/Sounds.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@

BigWigs:AddSounds("Fungarian Delve Trash", {
[414944] = "alert",
[424704] = "alarm",
[424773] = "alert",
[424798] = "alarm",
[424891] = "alarm",
[427710] = "alarm",
})

BigWigs:AddSounds("Kobold Delve Trash", {
Expand Down

0 comments on commit dd09abd

Please sign in to comment.