4,951
edits
(getSpellIconType: Implement for use in Template:SpellIcon) |
Falterfire (talk | contribs) (Excluding Runestone from the superior gems list when determining which spells can make an item) |
||
Line 419: | Line 419: | ||
isShard = GameData.getEntityByProperty(SkillData.Magic.randomShards, 'itemID', item.id) ~= nil | isShard = GameData.getEntityByProperty(SkillData.Magic.randomShards, 'itemID', item.id) ~= nil | ||
isGem = GameData.getEntityByProperty('randomGems', 'itemID', itemID) ~= nil | isGem = GameData.getEntityByProperty('randomGems', 'itemID', itemID) ~= nil | ||
isSuperiorGem = item.type == 'Superior Gem' | --Runestone can't be created by Alt Magic spells that make random superior gems. | ||
isSuperiorGem = item.type == 'Superior Gem' and item.id ~= SkillData.Mining.runestoneItemID | |||
if item.healsFor ~= nil then | if item.healsFor ~= nil then | ||
-- Item is food, but is it a product of perfect cooking? | -- Item is food, but is it a product of perfect cooking? |