Module:Items/SourceTables: Difference between revisions

Alt Magic -> Alt. Magic for consistency
(Alt Magic -> Alt. Magic for consistency)
Line 245: Line 245:
local spell = Magic.getSpell(spellName, 'AltMagic')
local spell = Magic.getSpell(spellName, 'AltMagic')
if spell == nil then
if spell == nil then
return 'ERROR: Could not find Alt Magic spell "' .. spellName .. '"[[Category:Pages with script errors]]'
return 'ERROR: Could not find Alt. Magic spell "' .. spellName .. '"[[Category:Pages with script errors]]'
else
else
return p._buildAltMagicTable(spell)
return p._buildAltMagicTable(spell)
Line 258: Line 258:
table.insert(resultPart, '\r\n|'..Icons._SkillReq('Magic', spell.level))
table.insert(resultPart, '\r\n|'..Icons._SkillReq('Magic', spell.level))


-- The produces property of Alt magic spells is as follows:
-- The produces property of Alt. Magic spells is as follows:
-- -3 = A random gem, using the same weights as Mining
-- -3 = A random gem, using the same weights as Mining
-- -2 = A bar of the type being created (Superheat)
-- -2 = A bar of the type being created (Superheat)
Line 266: Line 266:
-- The amount produced is determined by the productionRatio property
-- The amount produced is determined by the productionRatio property


-- The consumes property of Alt Magic spells is as follows:
-- The consumes property of Alt. Magic spells is as follows:
-- 0 = Any item
-- 0 = Any item
-- 1 = Junk item
-- 1 = Junk item
Line 987: Line 987:
local recipe = SkillData.Smithing.Recipes[item.masteryID[2] + 1]
local recipe = SkillData.Smithing.Recipes[item.masteryID[2] + 1]
if recipe ~= nil and recipe.category == 0 then
if recipe ~= nil and recipe.category == 0 then
table.insert(resultPart, '\r\n==='..Icons.Icon({'Alt Magic', type='skill'})..'===\r\n'..p._getItemSuperheatTable(item))
table.insert(resultPart, '\r\n==='..Icons.Icon({'Alt. Magic', type='skill'})..'===\r\n'..p._getItemSuperheatTable(item))
end
end
end
end