Anonymous

Module:Calculator/AgilityObstacle: Difference between revisions

From Melvor Idle
no edit summary
No edit summary
No edit summary
Line 60: Line 60:
end
end
if obstacle.scCost > 0 then
if obstacle.scCost > 0 then
concatItemRequirements(itemRequirements, 'GP', obstacle.scCost)
concatItemRequirements(itemRequirements, 'SC', obstacle.scCost)
end
end
Line 144: Line 144:
local courseRequirements = p.calculateCourse(obstacleNames, true)
local courseRequirements = p.calculateCourse(obstacleNames, true)
return Debug.toString(courseRequirements)
return '<pre>' .. Debug.toString(courseRequirements) .. '</pre>'
end
end


function p.test()
function p.test()
Debug.log(getObstacle("a lovely jog"))
mw.log( p._main({
'Cargo Net','Balance Beam','Pipe Climb'
}))
end
end


return p
return p
2,875

edits