Skip to content

Commit

Permalink
WarWithin/CinderbrewMeadery/Trash: Timers
Browse files Browse the repository at this point in the history
  • Loading branch information
ntowle committed Aug 12, 2024
1 parent 2a7d59f commit f9589ed
Showing 1 changed file with 105 additions and 14 deletions.
119 changes: 105 additions & 14 deletions WarWithin/CinderbrewMeadery/Trash.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ mod:RegisterEnableMob(
219415, -- Cooking Pot
219667, -- Flamethrower
214673, -- Flavor Scientist
222964, -- Flavor Scientist
223423, -- Careless Hopgoblin
210264, -- Bee Wrangler
220946, -- Venture Co. Honey Harvester
Expand Down Expand Up @@ -59,31 +60,31 @@ function mod:GetOptions()
"custom_on_cooking_autotalk",
"custom_on_flamethrower_autotalk",
-- Venture Co. Pyromaniac
437721, -- Boiling Flames
437956, -- Erupting Inferno
{437721, "NAMEPLATE"}, -- Boiling Flames
{437956, "NAMEPLATE"}, -- Erupting Inferno
-- Hired Muscle
434761, -- Mighty Stomp
-- Tasting Room Attendant
434706, -- Cindrewbrew Toss
{434706, "NAMEPLATE"}, -- Cindrewbrew Toss
-- Chef Chewie
434998, -- High Steaks
463206, -- Tenderize
-- Flavor Scientist
441627, -- Rejuvenating Honey
441434, -- Failed Batch
{441627, "NAMEPLATE"}, -- Rejuvenating Honey
{441434, "NAMEPLATE"}, -- Failed Batch
failedBatchMarker,
-- Careless Hopgoblin
448619, -- Reckless Delivery
{448619, "NAMEPLATE"}, -- Reckless Delivery
-- Bee Wrangler
{441119, "SAY"}, -- Bee-Zooka
{441119, "SAY", "NAMEPLATE"}, -- Bee-Zooka
-- Venture Co. Honey Harvester
442589, -- Beeswax
442995, -- Swarming Surprise
{442589, "NAMEPLATE"}, -- Beeswax
{442995, "NAMEPLATE"}, -- Swarming Surprise
-- Royal Jelly Purveyor
440687, -- Honey Volley
440876, -- Rain of Honey
{440687, "NAMEPLATE"}, -- Honey Volley
{440876, "NAMEPLATE"}, -- Rain of Honey
-- Yes Man
439467, -- Downward Trend
{439467, "NAMEPLATE"}, -- Downward Trend
}, {
[437721] = L.venture_co_pyromaniac,
[434761] = L.hired_muscle,
Expand All @@ -107,13 +108,19 @@ function mod:OnBossEnable()

-- Venture Co. Pyromaniac
self:Log("SPELL_CAST_START", "BoilingFlames", 437721)
self:Log("SPELL_AURA_APPLIED", "EruptingInferno", 437956)
self:Log("SPELL_INTERRUPT", "BoilingFlamesInterrupt", 437721)
self:Log("SPELL_CAST_SUCCESS", "BoilingFlamesSuccess", 437721)
self:Log("SPELL_CAST_SUCCESS", "EruptingInferno", 437956)
self:Log("SPELL_AURA_APPLIED", "EruptingInfernoApplied", 437956)
self:Death("VentureCoPyromaniacDeath", 218671)

-- Hired Muscle
self:Log("SPELL_CAST_START", "MightyStomp", 434761)
self:Log("SPELL_CAST_START", "MightyStomp", 434761) -- TODO removed?
--self:Death("HiredMuscleDeath", 210269)

-- Tasting Room Attendant
self:Log("SPELL_CAST_SUCCESS", "CindrewbrewToss", 434706)
self:Death("TastingRoomAttendantDeath", 214920)

-- Chef Chewie
self:Log("SPELL_CAST_START", "HighSteaks", 434998)
Expand All @@ -124,23 +131,33 @@ function mod:OnBossEnable()
self:Log("SPELL_CAST_START", "RejuvenatingHoney", 441627)
self:Log("SPELL_CAST_SUCCESS", "FailedBatch", 441434)
self:Log("SPELL_SUMMON", "FailedBatchSummon", 441501)
self:Death("FlavorScientistDeath", 214673, 222964)

-- Careless Hopgoblin
self:Log("SPELL_CAST_START", "RecklessDelivery", 448619)
self:Death("CarelessHopgoblinDeath", 223423)

-- Bee Wrangler
self:Log("SPELL_CAST_START", "BeeZooka", 441119)
self:Log("SPELL_CAST_SUCCESS", "BeeZookaSuccess", 441119)
self:Death("BeeWranglerDeath", 210264)

-- Venture Co. Honey Harvester
self:Log("SPELL_CAST_START", "Beeswax", 442589)
self:Log("SPELL_CAST_START", "SwarmingSurprise", 442995)
self:Death("VentureCoHoneyHarvesterDeath", 220946)

-- Royal Jelly Purveyor
self:Log("SPELL_CAST_START", "HoneyVolley", 440687)
self:Log("SPELL_INTERRUPT", "HoneyVolleyInterrupt", 440687)
self:Log("SPELL_CAST_SUCCESS", "HoneyVolleySuccess", 440687)
self:Log("SPELL_CAST_START", "RainOfHoney", 440876)
self:Log("SPELL_CAST_SUCCESS", "RainOfHoneySuccess", 440876)
self:Death("RoyalJellyPurveyorDeath", 220141)

-- Yes Man
self:Log("SPELL_CAST_START", "DownwardTrend", 439467)
self:Death("YesManDeath", 219588)
end

--------------------------------------------------------------------------------
Expand Down Expand Up @@ -173,25 +190,52 @@ end
function mod:BoilingFlames(args)
self:Message(args.spellId, "red", CL.casting:format(args.spellName))
self:PlaySound(args.spellId, "alert")
self:Nameplate(args.spellId, 0, args.sourceGUID)
end

function mod:BoilingFlamesInterrupt(args)
self:Nameplate(437721, 20.1, args.destGUID)
end

function mod:BoilingFlamesSuccess(args)
self:Nameplate(args.spellId, 20.1, args.sourceGUID)
end

function mod:EruptingInferno(args)
self:Nameplate(args.spellId, 13.3, args.sourceGUID)
end

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

function mod:VentureCoPyromaniacDeath(args)
self:ClearNameplate(args.destGUID)
end

-- Hired Muscle

function mod:MightyStomp(args)
self:Message(args.spellId, "yellow")
self:PlaySound(args.spellId, "alarm")
--self:Nameplate(args.spellId, 100, args.sourceGUID)
end

--function mod:HiredMuscleDeath(args)
--self:ClearNameplate(args.destGUID)
--end

-- Tasting Room Attendant

function mod:CindrewbrewToss(args)
self:Message(args.spellId, "orange")
self:PlaySound(args.spellId, "alarm")
self:Nameplate(args.spellId, 12.1, args.sourceGUID)
end

function mod:TastingRoomAttendantDeath(args)
self:ClearNameplate(args.destGUID)
end

-- Chef Chewie
Expand Down Expand Up @@ -234,11 +278,13 @@ end
function mod:RejuvenatingHoney(args)
self:Message(args.spellId, "red", CL.casting:format(args.spellName))
self:PlaySound(args.spellId, "alert")
self:Nameplate(args.spellId, 15.8, args.sourceGUID) -- CD triggers on cast start
end

function mod:FailedBatch(args)
self:Message(args.spellId, "yellow", CL.spawning:format(args.spellName))
self:PlaySound(args.spellId, "info")
self:Nameplate(args.spellId, 23.1, args.sourceGUID)
end

do
Expand All @@ -261,11 +307,20 @@ do
end
end

function mod:FlavorScientistDeath(args)
self:ClearNameplate(args.destGUID)
end

-- Careless Hopgoblin

function mod:RecklessDelivery(args)
self:Message(args.spellId, "orange")
self:PlaySound(args.spellId, "alarm")
self:Nameplate(args.spellId, 25.5, args.sourceGUID)
end

function mod:CarelessHopgoblinDeath(args)
self:ClearNameplate(args.destGUID)
end

-- Bee Wrangler
Expand All @@ -292,16 +347,30 @@ do
end
end

function mod:BeeZookaSuccess(args)
self:Nameplate(args.spellId, 18.2, args.sourceGUID)
end

function mod:BeeWranglerDeath(args)
self:ClearNameplate(args.destGUID)
end

-- Venture Co. Honey Harvester

function mod:Beeswax(args)
self:Message(args.spellId, "orange")
self:PlaySound(args.spellId, "alarm")
self:Nameplate(args.spellId, 18.2, args.sourceGUID)
end

function mod:SwarmingSurprise(args)
self:Message(args.spellId, "yellow")
self:PlaySound(args.spellId, "alert")
self:Nameplate(args.spellId, 23.1, args.sourceGUID)
end

function mod:VentureCoHoneyHarvesterDeath(args)
self:ClearNameplate(args.destGUID)
end

-- Royal Jelly Purveyor
Expand All @@ -318,9 +387,18 @@ do
self:Message(args.spellId, "red", CL.casting:format(args.spellName))
self:PlaySound(args.spellId, "alert")
end
self:Nameplate(args.spellId, 0, args.sourceGUID)
end
end

function mod:HoneyVolleyInterrupt(args)
self:Nameplate(440687, 9.3, args.destGUID)
end

function mod:HoneyVolleySuccess(args)
self:Nameplate(args.spellId, 9.3, args.sourceGUID)
end

function mod:RainOfHoney(args)
if self:Friendly(args.sourceFlags) then -- these NPCs can be mind-controlled by Priests
return
Expand All @@ -329,6 +407,14 @@ function mod:RainOfHoney(args)
self:PlaySound(args.spellId, "alarm")
end

function mod:RainOfHoneySuccess(args)
self:Nameplate(args.spellId, 16.2, args.sourceGUID)
end

function mod:RoyalJellyPurveyorDeath(args)
self:ClearNameplate(args.destGUID)
end

-- Yes Man

do
Expand All @@ -340,5 +426,10 @@ do
self:Message(args.spellId, "orange")
self:PlaySound(args.spellId, "alarm")
end
self:Nameplate(args.spellId, 14.6, args.sourceGUID) -- TODO success?
end
end

function mod:YesManDeath(args)
self:ClearNameplate(args.destGUID)
end

0 comments on commit f9589ed

Please sign in to comment.