mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 06:40:13 -05:00
- made the threat module use raw threat percentages by default so that its display matches Omen's.
- added an option to the threat module to display the scaled percent (the old method) instead of raw. this will cause it to disagree with Omen, but it's displaying the same information, only in a different way
This commit is contained in:
@ -677,6 +677,10 @@ end
|
||||
|
||||
-- rounding stuff
|
||||
function IceHUD:MathRound(num, idp)
|
||||
if not num then
|
||||
return nil
|
||||
end
|
||||
|
||||
local mult = 10^(idp or 0)
|
||||
return math.floor(num * mult + 0.5) / mult
|
||||
end
|
||||
|
Reference in New Issue
Block a user