Module:ModifierTables: Difference between revisions

Added item equip slot to modifier table
(getModifierTable: Implement displayOtherMods parameter)
(Added item equip slot to modifier table)
Line 230: Line 230:
     row.name = item.name
     row.name = item.name
     row.icon = Icons.Icon({item.name, type='item'})
     row.icon = Icons.Icon({item.name, type='item'})
     row.type = 'Item'
     row.type = 'Item'--For equipment, show the slot they go in
    --For equipment, show the slot they go in
if item.validSlots ~= nil then
  row.type = row.type..' ('..table.concat(item.validSlots, ', ')..')'
end
     local totalVal = 0
     local totalVal = 0
     for i, mod in pairs(modifiers) do
     for i, mod in pairs(modifiers) do