Anonymous

Module:Shop: Difference between revisions

From Melvor Idle
getToolTable: Fix for abyssal level requirements
(Add new coating & harvester upgrade tables, and amend getToolTable to use modifier IDs rather than aliases)
(getToolTable: Fix for abyssal level requirements)
Line 844: Line 844:
-- Return level requirement for just the specified skill
-- Return level requirement for just the specified skill
for i, purchReq in ipairs(tool.purchaseRequirements) do
for i, purchReq in ipairs(tool.purchaseRequirements) do
if purchReq.type == 'SkillLevel' and purchReq.skillID == skillID then
if (purchReq.type == 'SkillLevel' or purchReq.type == 'AbyssalLevel') and purchReq.skillID == skillID then
level = purchReq.level
level = purchReq.level
break
break