mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-04 04:30:01 +00:00
tooltip: calculate percentage for real hp units
This commit is contained in:
+1
-1
@@ -152,7 +152,7 @@ pfUI:RegisterModule("tooltip", "vanilla:tbc", function ()
|
||||
if C.tooltip.alwaysperc == "0" and ( estimated or hpmax > 100 or (round(hpmax/100*hp) ~= hp) ) then
|
||||
pfUI.tooltipStatusBar.HP:SetText(string.format("%s / %s", Abbreviate(rhp), Abbreviate(rhpmax)))
|
||||
else
|
||||
pfUI.tooltipStatusBar.HP:SetText(string.format("%s%%", hp))
|
||||
pfUI.tooltipStatusBar.HP:SetText(string.format("%s%%", hp/hpmax*100))
|
||||
end
|
||||
end)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user