+ elseif max > 0 then
+ if current > 1200000000 then -- 1.2B
+ frame.healthText:SetFormattedText("%.1fB", current / 1000000000);
+ elseif current > 1200000 then -- 1.2M
+ frame.healthText:SetFormattedText("%.1fM", current / 1000000);
+ elseif current > 1000 then -- 1K
+ frame.healthText:SetFormattedText("%.1fK", current / 1000);
+ else
+ frame.healthText:SetFormattedText("%d", current)
+ end