Added phase and elapsed time for boss wipes on the segment selection menu
This commit is contained in:
@@ -881,6 +881,22 @@ local segmentTypeToString = {
|
||||
return self.boss_hp
|
||||
end
|
||||
|
||||
---Return the percentage of the boss as a string, includes a zero on the left side if the number is less than 10
|
||||
---@param self combat
|
||||
---@return string
|
||||
function classCombat:GetBossHealthString()
|
||||
local bossHealth = self:GetBossHealth()
|
||||
if (bossHealth) then
|
||||
bossHealth = math.floor(bossHealth * 100)
|
||||
local bossHealthString = tostring(bossHealth)
|
||||
if (bossHealth < 10) then
|
||||
bossHealthString = "0" .. bossHealthString
|
||||
end
|
||||
return bossHealthString
|
||||
end
|
||||
return "00"
|
||||
end
|
||||
|
||||
---Get the boss name
|
||||
---@param self combat
|
||||
---@return string?
|
||||
|
||||
@@ -175,7 +175,7 @@ local statusBarBackgroundTable_ForDeathTooltip = {
|
||||
--expose in case someone want to customize the death tooltip background
|
||||
Details.StatusBarBackgroundTable_ForDeathTooltip = statusBarBackgroundTable_ForDeathTooltip
|
||||
|
||||
function Details.ShowDeathTooltip(instance, lineFrame, combatObject, deathTable)
|
||||
function Details.ShowDeathTooltip(instance, lineFrame, combatObject, deathTable) --~death
|
||||
local events = deathTable[1]
|
||||
local timeOfDeath = deathTable[2]
|
||||
local maxHP = max(deathTable[5], 0.001)
|
||||
|
||||
Reference in New Issue
Block a user