17,097
edits
(_getObstacleRequirements: Implement) |
(_getObstacleRequirements: Support pillars) |
||
Line 50: | Line 50: | ||
function p._getObstacleRequirements(obstacle) | function p._getObstacleRequirements(obstacle) | ||
local resultPart = {} | local resultPart = {} | ||
if obstacle.category > 0 then | if obstacle.category == nil then | ||
-- Pillar | |||
table.insert(resultPart, Icons._SkillReq('Agility', 99)) | |||
elseif obstacle.category > 0 then | |||
-- Obstacle | |||
table.insert(resultPart, Icons._SkillReq('Agility', obstacle.category * 10)) | table.insert(resultPart, Icons._SkillReq('Agility', obstacle.category * 10)) | ||
end | end |