Module:CombatAreas/AreaTables: Difference between revisions

added sorting by slayer area level to Requirements
(Created with two functions for generating tables)
 
(added sorting by slayer area level to Requirements)
Line 104: Line 104:
       table.insert(reqArray, Icons.Icon({dung.name, type='dungeon'})..' Completed')
       table.insert(reqArray, Icons.Icon({dung.name, type='dungeon'})..' Completed')
     end
     end
     result = result..'||'..table.concat(reqArray, '<br/>')
     result = result..'||data-sort-value="'..(area.slayerLevel ~= nil and area.SlayerLevel or 1)..'"|'..table.concat(reqArray, '<br/>')
     result = result..'||'
     result = result..'||'
     if area.areaEffectDescription ~= nil then
     if area.areaEffectDescription ~= nil then