Anonymous

Module:Magic: Difference between revisions

From Melvor Idle
_getSpellRequirements: Correct extra abyssal level requirement
(Update for v1.3)
(_getSpellRequirements: Correct extra abyssal level requirement)
Line 145: Line 145:
['type'] = 'SkillLevel',
['type'] = 'SkillLevel',
['skillID'] = 'melvorD:Magic',
['skillID'] = 'melvorD:Magic',
['level'] = spell.level,
['level'] = spell.level
['abyssalLevel'] = spell.abyssalLevel
}
}
}
}
if spell.abyssalLevel ~= nil and spell.abyssalLevel > 0 then
table.insert(extraReqs, {
['type'] = 'AbyssalSkillLevel',
['skillID'] = 'melvorD:Magic',
['level'] = spell.abyssalLevel
})
end
if spell.requiredItemID ~= nil then
if spell.requiredItemID ~= nil then
table.insert(extraReqs, {
table.insert(extraReqs, {