mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-27 18:06:02 +00:00
nameplates: round percentages for real hp units
This commit is contained in:
@@ -445,7 +445,7 @@ pfUI:RegisterModule("nameplates", "vanilla:tbc", function ()
|
||||
if C.nameplates.alwaysperc == "0" and ( estimated or hpmax > 100 or (round(hpmax/100*hp) ~= hp) ) then
|
||||
plate.health.text:SetText(string.format("%s / %s", Abbreviate(rhp), Abbreviate(rhpmax)))
|
||||
else
|
||||
plate.health.text:SetText(string.format("%s%%", hp/hpmax*100))
|
||||
plate.health.text:SetText(string.format("%s%%", ceil(hp/hpmax*100)))
|
||||
end
|
||||
else
|
||||
plate.health.text:SetText()
|
||||
|
||||
Reference in New Issue
Block a user