Skip to content

Commit

Permalink
Plugins/BossBlock: Support more toasts
Browse files Browse the repository at this point in the history
  • Loading branch information
funkydude committed Sep 13, 2024
1 parent 82885c2 commit 3dae8a1
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions Plugins/BossBlock.lua
Original file line number Diff line number Diff line change
Expand Up @@ -541,18 +541,19 @@ do
gainLifeTbl.subtitle = CL.extra:format(gainLifeTbl.subtitle, tbl.title) -- Combine
gainLifeTbl.iconFileID = tbl.iconFileID
end
elseif tbl.eventToastID == 256 or tbl.eventToastID == 258 then -- 0 lives / 1 life remaining
-- tbl.title is "0 Lives Remaining" / "One Life Remaining!"
tbl.subtitle = tbl.title
tbl.title = nil
tbl.bwDuration = 3
printMessage(self, tbl)
elseif branSkills[tbl.eventToastID] then -- Brann Ability, Brann power increase
-- tbl.title is "Combat Curios" / "Explorer's Ammunition Journal"
-- tbl.subtitle is "Brann Ability Unlocked!" / "Brann's power increased!"
tbl.subtitle = CL.other:format(tbl.subtitle, tbl.title) -- Combine, without uppercase
tbl.title = nil
tbl.bwDuration = 3
printMessage(self, tbl)
elseif tbl.eventToastID == 5 then -- Dungeon zone in popup
if not self.db.profile.blockZoneInToasts then
tbl.bwDuration = 2
printMessage(self, tbl)
end
elseif tbl.eventToastID == 199 then -- Feature unlock
-- tbl.title is "Hero Talents"
-- tbl.subtitle is "Feature Unlocked!"
Expand Down

0 comments on commit 3dae8a1

Please sign in to comment.