tooltip: round percentages for real hp units

This commit is contained in:
shagu
2020-05-20 03:07:00 +02:00
parent fe13f4b1bc
commit 0c0a9a02e1
+1 -1
View File
@@ -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/hpmax*100))
pfUI.tooltipStatusBar.HP:SetText(string.format("%s%%", ceil(hp/hpmax*100)))
end
end)