Module:Items/ComparisonTables: Difference between revisions

Updated for changes in Constants, getModifierDetails
(getItemUpgradeTable: Refactor)
(Updated for changes in Constants, getModifierDetails)
Line 384: Line 384:
local modDetail = {}
local modDetail = {}
for i, modName in pairs(modsDL) do
for i, modName in pairs(modsDL) do
local mName, mText, mSign, mIsNeg, mValUnsigned = Constants.getModifierDetails(modName)
local mName, mText, mIsNeg, mModifyValue = Constants.getModifierDetails(modName)
modDetail[modName] = { mult = (mSign == "+" and 1 or -1) }
modDetail[modName] = { mult = (mIsNeg == false and 1 or -1) }
end
end