17,101
edits
Falterfire (talk | contribs) (Excluding Runestone from the superior gems list when determining which spells can make an item) |
(Use printError function) |
||
Line 96: | Line 96: | ||
local spell = p.getSpell(spellName) | local spell = p.getSpell(spellName) | ||
if spell == nil then | if spell == nil then | ||
return | return Shared.printError('No spell named "' .. spellName .. '" exists in the data module') | ||
end | end | ||
Line 161: | Line 161: | ||
end | end | ||
else | else | ||
table.insert(resultPart, ' | table.insert(resultPart, Shared.printError('Unknown requirement: ' .. (req.type or 'nil'))) | ||
end | end | ||
end | end | ||
Line 200: | Line 200: | ||
local spell = p.getSpell(spellName) | local spell = p.getSpell(spellName) | ||
if spell == nil then | if spell == nil then | ||
return | return Shared.printError('No spell named "' .. spellName .. '" exists in the data module') | ||
end | end | ||
return p._getSpellItems(spell) | return p._getSpellItems(spell) | ||
Line 222: | Line 222: | ||
local spell = p.getSpell(spellName) | local spell = p.getSpell(spellName) | ||
if spell == nil then | if spell == nil then | ||
return | return Shared.printError('No spell named "' .. spellName .. '" exists in the data module') | ||
end | end | ||
return p._getSpellRunes(spell) | return p._getSpellRunes(spell) | ||
Line 336: | Line 336: | ||
local spell = p.getSpell(spellName) | local spell = p.getSpell(spellName) | ||
if spell == nil then | if spell == nil then | ||
return | return Shared.printError('No spell named "' .. spellName .. '" exists in the data module') | ||
end | end | ||
return p._getSpellStat(spell, statName) | return p._getSpellStat(spell, statName) | ||
Line 345: | Line 345: | ||
local spell = p.getSpell(spellName) | local spell = p.getSpell(spellName) | ||
if spell == nil then | if spell == nil then | ||
return | return Shared.printError('No spell named "' .. spellName .. '" exists in the data module') | ||
end | end | ||
Line 370: | Line 370: | ||
local spell = p.getSpell(spellName) | local spell = p.getSpell(spellName) | ||
if spell == nil then | if spell == nil then | ||
return | return Shared.printError('No spell named "' .. spellName .. '" exists in the data module') | ||
end | end | ||
return p._getSpellCategories(spell) | return p._getSpellCategories(spell) | ||
Line 676: | Line 676: | ||
local spell = p.getSpell(spellName) | local spell = p.getSpell(spellName) | ||
if spell == nil then | if spell == nil then | ||
return ' | return Shared.printError('No spell named "' .. spellName .. '" exists in the data module') | ||
else | else | ||
table.insert(spellList, spell) | table.insert(spellList, spell) |