Skip to content

Commit

Permalink
[DSR] Added Taleria's Rapid Deluge countdown
Browse files Browse the repository at this point in the history
  • Loading branch information
MysteryDragon committed Jun 18, 2022
1 parent 77b0b4f commit 7159ce6
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 0 deletions.
6 changes: 6 additions & 0 deletions BuffsDebuffs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -651,5 +651,11 @@ local dreadsail_reef = {}
dreadsail_reef.lylanar_imminent_blister = 168525
-- Turlassil's Imminent Chill debuff (will be followed by Chilling Fragility; attack ID = 166527)
dreadsail_reef.turlassil_imminent_chill = 168526
-- Tideborn Taleria's Rapid Deluge
dreadsail_reef.taleria_rapid_deluge = {
[174959] = true, -- Normal
[174960] = true, -- Veteran
[174961] = true, -- Hardmode
}

RaidNotifier.BuffsDebuffs[RAID_DREADSAIL_REEF] = dreadsail_reef
8 changes: 8 additions & 0 deletions Settings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,7 @@ do ------------------
},
dreadsailReef = {
imminent_debuffs = false,
taleria_rapid_deluge = 0, -- "Off"
},
dbg = {
enable = false,
Expand Down Expand Up @@ -570,6 +571,7 @@ function RaidNotifier:CreateSettingsMenu()
bahsei_embrace_of_death = off_self_all,
},
dreadsailReef = {
taleria_rapid_deluge = off_self_all,
},
}

Expand Down Expand Up @@ -1721,6 +1723,12 @@ function RaidNotifier:CreateSettingsMenu()
name = L.Settings_DreadsailReef_Imminent_Debuffs,
tooltip = L.Settings_DreadsailReef_Imminent_Debuffs_TT,
}, "dreadsailReef", "imminent_debuffs")
MakeControlEntry({
type = "dropdown",
name = L.Settings_DreadsailReef_Rapid_Deluge,
tooltip = L.Settings_DreadsailReef_Rapid_Deluge_TT,
choices = choices.dreadsailReef.taleria_rapid_deluge,
}, "dreadsailReef", "taleria_rapid_deluge")
subTable = nil --end submenu

MakeControlEntry({
Expand Down
7 changes: 7 additions & 0 deletions TrialDreadsailReef.lua
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,13 @@ function RaidNotifier.DSR.OnCombatEvent(_, result, isError, aName, aGraphic, aAc
elseif (tName ~= "") then
self:StartCountdown(hitValue, zo_strformat(GetString(RAIDNOTIFIER_ALERTS_DREADSAILREEF_IMMINENT_CHILL_OTHER), tName), "dreadsailReef", "imminent_debuffs", true)
end
-- Tideborn Taleria's Rapid Deluge
elseif (buffsDebuffs.taleria_rapid_deluge[abilityId] and settings.taleria_rapid_deluge > 0) then
if (tType == COMBAT_UNIT_TYPE_PLAYER) then
self:StartCountdown(hitValue, GetString(RAIDNOTIFIER_ALERTS_DREADSAILREEF_RAPID_DELUGE), "dreadsailReef", "taleria_rapid_deluge", true)
elseif (settings.taleria_rapid_deluge == 2 and tName ~= "") then
self:StartCountdown(hitValue, zo_strformat(GetString(RAIDNOTIFIER_ALERTS_DREADSAILREEF_RAPID_DELUGE_OTHER), tName), "dreadsailReef", "taleria_rapid_deluge", true)
end
end
end
end
4 changes: 4 additions & 0 deletions lang/en.lua
Original file line number Diff line number Diff line change
Expand Up @@ -632,12 +632,16 @@ L.Settings_DreadsailReef_Header = "Dreadsail Reef"
-- Settings
L.Settings_DreadsailReef_Imminent_Debuffs = "Lylanar & Turlassil: Imminent Blister/Chill"
L.Settings_DreadsailReef_Imminent_Debuffs_TT = "Alerts you when tank receives Imminent Blister debuff from Lylanar or Imminent Chill debuff from Turlassil. Tanks should swap in 10 seconds."
L.Settings_DreadsailReef_Rapid_Deluge = "Taleria: Rapid Deluge"
L.Settings_DreadsailReef_Rapid_Deluge_TT = "Alerts you when you or someone got Rapid Deluge debuff. They'll explode in 6 seconds, and the best option to handle the damage is to be swimming at that time."

-- Alerts
L.Alerts_DreadsailReef_Imminent_Blister = "You're afflicted by |cF27D0CImminent Blister|r! Swap tanks until"
L.Alerts_DreadsailReef_Imminent_Blister_Other = "|cFF0000<<!aC:1>>|r afflicted by |cF27D0CImminent Blister|r! Swap tanks until"
L.Alerts_DreadsailReef_Imminent_Chill = "You're afflicted by |cB4CFFAImminent Chill|r! Swap tanks until"
L.Alerts_DreadsailReef_Imminent_Chill_Other = "|cFF0000<<!aC:1>>|r afflicted by |cB4CFFAImminent Chill|r! Swap tanks until"
L.Alerts_DreadsailReef_Rapid_Deluge = "You got |c1CA3ECRapid Deluge|r! You should be swimming in"
L.Alerts_DreadsailReef_Rapid_Deluge_Other = "|cFF0000<<!aC:1>>|r got |c1CA3ECRapid Deluge|r! Swim in"


--------------------------------
Expand Down

0 comments on commit 7159ce6

Please sign in to comment.