Skip to content

Commit

Permalink
Fix formatting of very small decimal values
Browse files Browse the repository at this point in the history
  • Loading branch information
raethkcj committed Jun 14, 2024
1 parent 010a87e commit 69226d8
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions RatingBuster.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1986,10 +1986,16 @@ function RatingBuster:ProcessText(text, link, color)
effect = ("%+.1f"):format(effect)
elseif floor(abs(effect) + 0.5) > 0 then
effect = ("%+.0f"):format(effect)
else
-- Effect is too small to show
effect = false
end
effects[effect] = effects[effect] or {}
if statID ~= "Decimal" then
tinsert(effects[effect], S[statID])

if effect then
effects[effect] = effects[effect] or {}
if statID ~= "Decimal" then
tinsert(effects[effect], S[statID])
end
end
end
end
Expand Down

0 comments on commit 69226d8

Please sign in to comment.