mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-26 14:00:48 +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
|
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)))
|
plate.health.text:SetText(string.format("%s / %s", Abbreviate(rhp), Abbreviate(rhpmax)))
|
||||||
else
|
else
|
||||||
plate.health.text:SetText(string.format("%s%%", hp/hpmax*100))
|
plate.health.text:SetText(string.format("%s%%", ceil(hp/hpmax*100)))
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
plate.health.text:SetText()
|
plate.health.text:SetText()
|
||||||
|
|||||||
Reference in New Issue
Block a user