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/Fungarian: Add trash module #1038

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
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