Anonymous

Module:Skills: Difference between revisions

From Melvor Idle
m
getMasteryTokenTable: Center align item images
(Implement getSkillUnlockCostTable())
m (getMasteryTokenTable: Center align item images)
Line 540: Line 540:


     table.insert(resultPart, '\r\n|-')
     table.insert(resultPart, '\r\n|-')
     table.insert(resultPart, '\r\n|' .. Icons.Icon({token.name, type='item', size=50, notext=true}))
     table.insert(resultPart, '\r\n|style="text-align:center"|' .. Icons.Icon({token.name, type='item', size=50, notext=true}))
     table.insert(resultPart, '\r\n|' .. Icons.Icon({p.getSkillName(m['skillID']), type='skill'}))
     table.insert(resultPart, '\r\n|' .. Icons.Icon({p.getSkillName(m['skillID']), type='skill'}))
     table.insert(resultPart, '\r\n|style="text-align:right" data-sort-value="' .. denom .. '"|1/' .. Shared.formatnum(denom))
     table.insert(resultPart, '\r\n|style="text-align:right" data-sort-value="' .. denom .. '"|1/' .. Shared.formatnum(denom))