Module:Sandbox/Skills/Agility: Difference between revisions

_getObstacleRequirements: Support pillars
(_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