Anonymous

Module:Items/SourceTables: Difference between revisions

From Melvor Idle
Slightly tweaked formatting of p.getCombatPassiveSlotItems (also created getBonesTable but ended up putting that in Module:Prayer)
m (typing is hard)
(Slightly tweaked formatting of p.getCombatPassiveSlotItems (also created getBonesTable but ended up putting that in Module:Prayer))
Line 893: Line 893:
   table = table..'!colspan="2"|Item\r\n! Passive\r\n'
   table = table..'!colspan="2"|Item\r\n! Passive\r\n'


   for i, item in pairs(ItemData.Items) do
  local itemArray = Items.getItems(function(item) return item.isPassiveItem and true or false end)
     if item.isPassiveItem then
 
      table = table..'|-\r\n'
   for i, item in Shared.skpairs(itemArray) do
      table = table..'! '..Icons.Icon({item.name, type='item', notext='true'})..'\r\n! [['..item.name..']]\r\n'
     table = table..'|-\r\n'
      table = table..'| '..item.description..'\r\n'
    table = table..'! '..Icons.Icon({item.name, type='item', notext='true'})..'\r\n! [['..item.name..']]\r\n'
    end
    table = table..'| '..item.description..'\r\n'
   end
   end