diff --git a/Delves/Trash/Fungarian.lua b/Delves/Trash/Fungarian.lua index 8fa085665..4389a1563 100644 --- a/Delves/Trash/Fungarian.lua +++ b/Delves/Trash/Fungarian.lua @@ -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 diff --git a/Delves/Trash/Locales/deDE.lua b/Delves/Trash/Locales/deDE.lua index 52f904c62..beb1fcf47 100644 --- a/Delves/Trash/Locales/deDE.lua +++ b/Delves/Trash/Locales/deDE.lua @@ -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") diff --git a/Delves/Trash/Locales/esES.lua b/Delves/Trash/Locales/esES.lua index 81ad62699..5a6f84753 100644 --- a/Delves/Trash/Locales/esES.lua +++ b/Delves/Trash/Locales/esES.lua @@ -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") diff --git a/Delves/Trash/Locales/frFR.lua b/Delves/Trash/Locales/frFR.lua index 46f66789f..3c06c67a2 100644 --- a/Delves/Trash/Locales/frFR.lua +++ b/Delves/Trash/Locales/frFR.lua @@ -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") diff --git a/Delves/Trash/Locales/itIT.lua b/Delves/Trash/Locales/itIT.lua index 3d33980f3..00e86cb8b 100644 --- a/Delves/Trash/Locales/itIT.lua +++ b/Delves/Trash/Locales/itIT.lua @@ -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") diff --git a/Delves/Trash/Locales/koKR.lua b/Delves/Trash/Locales/koKR.lua index 1c1546c6f..8fbf78b39 100644 --- a/Delves/Trash/Locales/koKR.lua +++ b/Delves/Trash/Locales/koKR.lua @@ -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") diff --git a/Delves/Trash/Locales/ptBR.lua b/Delves/Trash/Locales/ptBR.lua index 15b7ee667..5c97943e1 100644 --- a/Delves/Trash/Locales/ptBR.lua +++ b/Delves/Trash/Locales/ptBR.lua @@ -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") diff --git a/Delves/Trash/Locales/ruRU.lua b/Delves/Trash/Locales/ruRU.lua index c609a3329..0725b5c90 100644 --- a/Delves/Trash/Locales/ruRU.lua +++ b/Delves/Trash/Locales/ruRU.lua @@ -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") diff --git a/Delves/Trash/Locales/zhCN.lua b/Delves/Trash/Locales/zhCN.lua index c36c72f43..9c51a3200 100644 --- a/Delves/Trash/Locales/zhCN.lua +++ b/Delves/Trash/Locales/zhCN.lua @@ -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") diff --git a/Delves/Trash/Locales/zhTW.lua b/Delves/Trash/Locales/zhTW.lua index ffe983e79..3b63bdf9b 100644 --- a/Delves/Trash/Locales/zhTW.lua +++ b/Delves/Trash/Locales/zhTW.lua @@ -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") diff --git a/Delves/Trash/Options/Colors.lua b/Delves/Trash/Options/Colors.lua index d5d1a79f2..858fd8b6f 100644 --- a/Delves/Trash/Options/Colors.lua +++ b/Delves/Trash/Options/Colors.lua @@ -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", { diff --git a/Delves/Trash/Options/Sounds.lua b/Delves/Trash/Options/Sounds.lua index 67785cba8..e14b9facf 100644 --- a/Delves/Trash/Options/Sounds.lua +++ b/Delves/Trash/Options/Sounds.lua @@ -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", {