Anonymous

Module:Items/SourceTables: Difference between revisions

From Melvor Idle
m
testing combat passive slot
m (testing)
m (testing combat passive slot)
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..'!Item\r\n! Passive\r\n'
   table = table..'|-\r\n'
   table = table..'|-\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| passive\r\n'
       table = table..'\r\n!'..item.name..'\r\n| passive\r\n'
      table = table..'|-\r\n'
     end
     end
   end
   end
892

edits