4,951
edits
(Further corrections to special attack description generation) |
Falterfire (talk | contribs) (Fixed a minor typo that was preventing spell requirements from including equipped items) |
||
Line 121: | Line 121: | ||
local resultPart = { Icons._SkillReq('Magic', spell.level) } | local resultPart = { Icons._SkillReq('Magic', spell.level) } | ||
if spell. | if spell.requiredItemID ~= nil then | ||
local item = Items.getItemByID(spell. | local item = Items.getItemByID(spell.requiredItemID) | ||
if item ~= nil then | if item ~= nil then | ||
table.insert(resultPart, Icons.Icon({item.name, type='item', notext=true}) .. ' Equipped') | table.insert(resultPart, Icons.Icon({item.name, type='item', notext=true}) .. ' Equipped') |