Skip to content

Commit

Permalink
BlackfathomDeeps_Classic/Ghamoo-ra: Import
Browse files Browse the repository at this point in the history
  • Loading branch information
funkydude committed Dec 3, 2023
1 parent 3cbf37d commit 2baecf0
Show file tree
Hide file tree
Showing 12 changed files with 154 additions and 1 deletion.
103 changes: 103 additions & 0 deletions BlackfathomDeeps_Classic/Ghamoo-ra.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
--------------------------------------------------------------------------------
-- Module Declaration
--

local mod, CL = BigWigs:NewBoss("Ghamoo-ra Discovery", 48, -2697)
if not mod then return end
mod:RegisterEnableMob(201722) -- Ghamoo-ra Season of Discovery
mod:SetEncounterID(2697)

--------------------------------------------------------------------------------
-- Locals
--

local isWeakened = false

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

local L = mod:GetLocale()
if L then
L.bossName = "Ghamoo-ra"
end

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

function mod:GetOptions()
return {
407095, -- Crunch Armor
{407025, "EMPHASIZE"}, -- Exposed
407077, -- Triple Chomp
{406970, "INFOBOX"}
},nil,{
[407025] = CL.weakened, -- Exposed (Weakened)
}
end

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

function mod:OnBossEnable()
self:Log("SPELL_AURA_APPLIED", "CrunchArmorApplied", 407095)
self:Log("SPELL_AURA_APPLIED_DOSE", "CrunchArmorApplied", 407095)
self:Log("SPELL_AURA_APPLIED", "Exposed", 407025)
self:Log("SPELL_AURA_REMOVED", "ExposedOver", 407025)
self:Log("SPELL_AURA_APPLIED", "AquaShellApplied", 406970)
self:Log("SPELL_AURA_REMOVED_DOSE", "AquaShellRemovedDose", 406970)
self:Log("SPELL_AURA_APPLIED", "TripleChomp", 407077)

self:Death("Win", 201722)
end


function mod:OnEngage()
isWeakened = false
end

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

function mod:CrunchArmorApplied(args)
local amount = args.amount or 1
self:StackMessage(args.spellId, "purple", args.destName, amount, 3)
if amount >= 3 then
self:PlaySound(args.spellId, "warning")
end
end

function mod:Exposed(args)
isWeakened = true
self:CloseInfo(406970) -- Aqua Shell
self:Message(args.spellId, "yellow", CL.duration:format(CL.weakened, 60))
self:Bar(args.spellId, 60, CL.weakened)
self:PlaySound(args.spellId, "long")
end

function mod:ExposedOver(args)
isWeakened = false
self:Message(args.spellId, "red", CL.over:format(CL.weakened))
self:PlaySound(args.spellId, "info")
end

function mod:AquaShellApplied(args)
self:OpenInfo(args.spellId, args.spellName)
self:SetInfoBar(args.spellId, 1, 1)
self:SetInfo(args.spellId, 1, 100)
end

function mod:AquaShellRemovedDose(args)
self:SetInfoBar(args.spellId, 1, args.amount/100)
self:SetInfo(args.spellId, 1, args.amount)
end

function mod:TripleChomp(args)
self:Message(args.spellId, "purple")
if isWeakened then
self:Bar(args.spellId, 11.3)
end
end
5 changes: 5 additions & 0 deletions BlackfathomDeeps_Classic/Locales/deDE.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,8 @@ if not L then return end
if L then
--L.bossName = "Baron Aquanis"
end

L = BigWigs:NewBossLocale("Ghamoo-ra Discovery", "deDE")
if L then
--L.bossName = "Ghamoo-ra"
end
5 changes: 5 additions & 0 deletions BlackfathomDeeps_Classic/Locales/esES.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,8 @@ if not L then return end
if L then
L.bossName = "Barón Aquanis"
end

L = BigWigs:NewBossLocale("Ghamoo-ra Discovery", "esES")
if L then
--L.bossName = "Ghamoo-ra"
end
5 changes: 5 additions & 0 deletions BlackfathomDeeps_Classic/Locales/esMX.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,8 @@ if not L then return end
if L then
L.bossName = "Barón Aquanis"
end

L = BigWigs:NewBossLocale("Ghamoo-ra Discovery", "esMX")
if L then
--L.bossName = "Ghamoo-ra"
end
5 changes: 5 additions & 0 deletions BlackfathomDeeps_Classic/Locales/frFR.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,8 @@ if not L then return end
if L then
--L.bossName = "Baron Aquanis"
end

L = BigWigs:NewBossLocale("Ghamoo-ra Discovery", "frFR")
if L then
--L.bossName = "Ghamoo-ra"
end
5 changes: 5 additions & 0 deletions BlackfathomDeeps_Classic/Locales/itIT.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,8 @@ if not L then return end
if L then
--L.bossName = "Baron Aquanis"
end

L = BigWigs:NewBossLocale("Ghamoo-ra Discovery", "itIT")
if L then
--L.bossName = "Ghamoo-ra"
end
5 changes: 5 additions & 0 deletions BlackfathomDeeps_Classic/Locales/koKR.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,8 @@ if not L then return end
if L then
L.bossName = "군주 아쿠아니스"
end

L = BigWigs:NewBossLocale("Ghamoo-ra Discovery", "koKR")
if L then
L.bossName = "가무라"
end
5 changes: 5 additions & 0 deletions BlackfathomDeeps_Classic/Locales/ptBR.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,8 @@ if not L then return end
if L then
L.bossName = "Barão Aquanis"
end

L = BigWigs:NewBossLocale("Ghamoo-ra Discovery", "ptBR")
if L then
--L.bossName = "Ghamoo-ra"
end
5 changes: 5 additions & 0 deletions BlackfathomDeeps_Classic/Locales/ruRU.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,8 @@ if not L then return end
if L then
L.bossName = "Барон Акванис"
end

L = BigWigs:NewBossLocale("Ghamoo-ra Discovery", "ruRU")
if L then
L.bossName = "Гхаму-ра"
end
5 changes: 5 additions & 0 deletions BlackfathomDeeps_Classic/Locales/zhCN.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,8 @@ if not L then return end
if L then
L.bossName = "阿奎尼斯男爵"
end

L = BigWigs:NewBossLocale("Ghamoo-ra Discovery", "zhCN")
if L then
L.bossName = "加摩拉"
end
5 changes: 5 additions & 0 deletions BlackfathomDeeps_Classic/Locales/zhTW.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,8 @@ if not L then return end
if L then
--L.bossName = "Baron Aquanis"
end

L = BigWigs:NewBossLocale("Ghamoo-ra Discovery", "zhTW")
if L then
--L.bossName = "Ghamoo-ra"
end
2 changes: 1 addition & 1 deletion BlackfathomDeeps_Classic/modules.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
..\FrameXML\UI.xsd">

<Script file="BaronAquanis.lua"/>
<!--<Script file="Ghamoo-ra.lua"/>-->
<Script file="Ghamoo-ra.lua"/>
<!--<Script file="LadySarevess.lua"/>-->
<!--<Script file="Gelihast.lua"/>-->
<!--<Script file="LorgusJett.lua"/>-->
Expand Down

0 comments on commit 2baecf0

Please sign in to comment.