Anonymous

Module:Magic: Difference between revisions

From Melvor Idle
Added smithing requirement to Superheat spells
No edit summary
(Added smithing requirement to Superheat spells)
Line 672: Line 672:
local spellBook = p.getSpellBookFromSpell(spell)
local spellBook = p.getSpellBookFromSpell(spell)
local row = html:tag('tr')
local row = html:tag('tr')
local reqText = ''
if string.find(spell.name, 'Superheat') ~= nil then
reqText = "<br>Bar's " .. Icons._SkillRealmIcon('Smithing', 'melvorD:Melvor') .. " Level"
end
row:tag('td'):wikitext(Icons.Icon({spell.name, type=spellBook.imgType, notext=true}))
row:tag('td'):wikitext(Icons.Icon({spell.name, type=spellBook.imgType, notext=true}))
:css('text-align', 'center')
:css('text-align', 'center')
Line 682: Line 686:
end
end


row:tag('td'):wikitext(p._getSpellRequirements(spell))
row:tag('td'):wikitext(p._getSpellRequirements(spell) .. reqText)
    :attr('data-sort-value', spell.level)
    :attr('data-sort-value', spell.level)
row:tag('td'):wikitext(Icons.getDLCColumnIcon(spell.id))
row:tag('td'):wikitext(Icons.getDLCColumnIcon(spell.id))