Skip to content

Commit cc6b22c

Browse files
committed
Fix spelling
1 parent 834ea4b commit cc6b22c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Modules/Common.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -667,8 +667,8 @@ function roundSymmetric(val, dec)
667667
end
668668
end
669669

670-
-- Use rounding formula for postive numbers always used in corrupted unique roll ranges this is an incorrect way to round numbers.
671-
function alwaysPositveRound(val, dec)
670+
-- Use rounding formula for positive numbers always used in corrupted unique roll ranges this is an incorrect way to round numbers.
671+
function alwaysPositiveRound(val, dec)
672672
if dec then
673673
local factor = 10 ^ dec
674674
return m_floor(val * factor + 0.5) / factor

src/Modules/ItemTools.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ end
4444
-- ifRequired determines whether trailing zeros are displayed or not.
4545
function itemLib.formatValue(value, baseValueScalar, valueScalar, precision, displayPrecision, ifRequired)
4646
value = roundSymmetric(value * precision) -- resolve range to internal value
47-
if baseValueScalar and baseValueScalar ~= 1 then value = alwaysPositveRound(value * baseValueScalar) end -- apply corrupted mult
47+
if baseValueScalar and baseValueScalar ~= 1 then value = alwaysPositiveRound(value * baseValueScalar) end -- apply corrupted mult
4848
if valueScalar and valueScalar ~= 1 then value = floorSymmetric(value * valueScalar) end -- apply modifier magnitude
4949
value = value / precision -- convert back to display space
5050
if displayPrecision then value = roundSymmetric(value, displayPrecision) end -- presentation

0 commit comments

Comments
 (0)