Anonymous

Module:Skills/Summoning: Difference between revisions

From Melvor Idle
Use printError function
(Add TotH icon to tables)
(Use printError function)
Line 173: Line 173:
local familiarItem = Items.getItem(famName)
local familiarItem = Items.getItem(famName)
if familiarItem == nil then
if familiarItem == nil then
return 'ERROR: Not a valid familiar[[Category:Pages with script errors]]'
return Shared.printError('Not a valid familiar')
else
else
for i, recipe in ipairs(SkillData.Summoning.recipes) do
for i, recipe in ipairs(SkillData.Summoning.recipes) do
Line 182: Line 182:
end
end
if familiarID == nil then
if familiarID == nil then
return 'ERROR: Not a valid familiar[[Category:Pages with script errors]]'
return Shared.printError('Not a valid familiar')
else
else
return p._getSynergyTable(familiarID)
return p._getSynergyTable(familiarID)