Anonymous

Module:Items/SourceTables: Difference between revisions

From Melvor Idle
m
testing
m (testing)
m (testing)
Line 886: Line 886:


function p.getCombatPassiveSlotItems(frame)
function p.getCombatPassiveSlotItems(frame)
   local table = '{| class="wikitable"'
   local table = '{| class="wikitable"\r\n'
   table = table..'\r\n!Item!Passive'
   table = table..'!- Item\r\n! Passive\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
       table = table..'\r\n!-'..item.name..'\r\n| passive\r\n'
     end
     end
   end
   end
 
  table = table..'|}'


   return table
   return table
892

edits