Anonymous

Module:Items/SourceTables: Difference between revisions

From Melvor Idle
magicLevelRequired -> level to match v0.22 syntax
m (Fix Alt Magic source for ItemBox)
(magicLevelRequired -> level to match v0.22 syntax)
Line 224: Line 224:
   table.insert(resultPart, '\r\n!colspan="2"|'..Icons.Icon({spell.name, type='spell'}))
   table.insert(resultPart, '\r\n!colspan="2"|'..Icons.Icon({spell.name, type='spell'}))
   table.insert(resultPart, '\r\n|-\r\n!style="text-align:right;"|Requirements')
   table.insert(resultPart, '\r\n|-\r\n!style="text-align:right;"|Requirements')
   table.insert(resultPart, '\r\n|'..Icons._SkillReq('Magic', spell.magicLevelRequired))
   table.insert(resultPart, '\r\n|'..Icons._SkillReq('Magic', spell.level))
   -- 1 means select any item. 0 would mean Superheat, but that's handled elsewhere
   -- 1 means select any item. 0 would mean Superheat, but that's handled elsewhere
   -- -1 means no item is needed, so hide this section
   -- -1 means no item is needed, so hide this section
Line 855: Line 855:
     table.insert(rowPart, '\r\n|-\r\n|'..Icons.Icon({spell.name, type='spell', notext=true, size=50}))
     table.insert(rowPart, '\r\n|-\r\n|'..Icons.Icon({spell.name, type='spell', notext=true, size=50}))
     table.insert(rowPart, '||[['..spell.name..']]||'..item.smithingLevel)
     table.insert(rowPart, '||[['..spell.name..']]||'..item.smithingLevel)
     table.insert(rowPart, '||'..spell.magicLevelRequired..'||'..spell.magicXP..'||'..spell.convertToQty)
     table.insert(rowPart, '||'..spell.level..'||'..spell.magicXP..'||'..spell.convertToQty)
     table.insert(rowPart, '||'..oreString)
     table.insert(rowPart, '||'..oreString)
     if spell.ignoreCoal ~= nil and not spell.ignoreCoal then table.insert(rowPart, coalString) end
     if spell.ignoreCoal ~= nil and not spell.ignoreCoal then table.insert(rowPart, coalString) end