Anonymous

Module:Items/SourceTables: Difference between revisions

From Melvor Idle
m
hm
m (testing)
m (hm)
Line 887: Line 887:
function p.getCombatPassiveSlotItems(frame)
function p.getCombatPassiveSlotItems(frame)
   local table = '{| class="wikitable"\r\n'
   local table = '{| class="wikitable"\r\n'
  table = table..'!Item\r\n! Passive\r\n'
   table = table..'|-\r\n'
   table = table..'|-\r\n'
  table = table..'! Item\r\n! Passive\r\n'


   for i, item in pairs(ItemData.Items) do
   for i, item in pairs(ItemData.Items) do
     if item.isPassiveItem then
     if item.isPassiveItem then
      table = table..'\r\n!'..item.name..'\r\n'
      table = table..'\r\n|'..item.description..'\r\n|'
       table = table..'|-\r\n'
       table = table..'|-\r\n'
      table = table..'! {{ItemIcon|'..item.name..'}}\r\n'
      table = table..'| '..item.description..'\r\n'
     end
     end
   end
   end
892

edits