Module:Skills: Difference between revisions

obstacleUnlockLevels now includes level 1
(getThievingSourcesForItem: Expose further information in return value)
(obstacleUnlockLevels now includes level 1)
Line 59: Line 59:
if recipe.category ~= nil then
if recipe.category ~= nil then
-- Obstacle
-- Obstacle
if recipe.category == 0 then
return SkillData.Agility.obstacleUnlockLevels[recipe.category+1]
return 1
else
return SkillData.Agility.obstacleUnlockLevels[recipe.category]
end
else
else
-- Pillar
-- Pillar