Module:Items/UseTables: Difference between revisions

magicLevelRequired->level to match v0.22
(more right-aligning)
(magicLevelRequired->level to match v0.22)
Line 627: Line 627:
     table.insert(rowPart, Icons.Icon({spell.name, type=iconType, notext=true, size=50}))
     table.insert(rowPart, Icons.Icon({spell.name, type=iconType, notext=true, size=50}))
     table.insert(rowPart, '||[['..spell.name..']]')
     table.insert(rowPart, '||[['..spell.name..']]')
     table.insert(rowPart, '||data-sort-value="'..spell.magicLevelRequired..'"|'..Icons._SkillReq('Magic', spell.magicLevelRequired))
     table.insert(rowPart, '||data-sort-value="'..spell.level..'"|'..Icons._SkillReq('Magic', spell.level))
     --Handle required items/dungeon clears
     --Handle required items/dungeon clears
     if spell.requiredItem ~= nil and spell.requiredItem >= 0 then
     if spell.requiredItem ~= nil and spell.requiredItem >= 0 then