Anonymous

Module:Skills/Agility: Difference between revisions

From Melvor Idle
fixed span definition, hiding text on items
(Formatting tweaks to obstacle course table)
(fixed span definition, hiding text on items)
Line 36: Line 36:
     end
     end
     if Shared.tableCount(bonuses) == 0 then
     if Shared.tableCount(bonuses) == 0 then
       table.insert(bonuses, '<span color="red">None :(</span>')
       table.insert(bonuses, '<span style="color:red">None :(</span>')
     end
     end
     result = result..'||'..table.concat(bonuses, '<br/>')
     result = result..'||'..table.concat(bonuses, '<br/>')
Line 57: Line 57:
     for j, itemCost in Shared.skpairs(obst.cost.items) do
     for j, itemCost in Shared.skpairs(obst.cost.items) do
       local item = Items.getItemByID(itemCost[1])
       local item = Items.getItemByID(itemCost[1])
       table.insert(costs, Icons.Icon({item.name, type='item', qty = itemCost[2]}))
       table.insert(costs, Icons.Icon({item.name, type='item', qty = itemCost[2], notext=true}))
     end
     end
     result = result..'|| data-sort-value="'..obst.cost.gp..'"|'..table.concat(costs, '<br/>')
     result = result..'|| data-sort-value="'..obst.cost.gp..'"|'..table.concat(costs, '<br/>')