Anonymous

Module:Skills/Agility: Difference between revisions

From Melvor Idle
no edit summary
No edit summary
No edit summary
Line 89: Line 89:
end
end


local function formatObstacleRequirements(obstacle)
function p._getObstacleRequirements(obstacle)
local resultPart = {}
local resultPart = {}
local requirements = p.getObstacleRequirements(obstacle)
local requirements = p.getObstacleRequirements(obstacle)
Line 100: Line 100:
end
end


local function formatObstacleCosts(obstacle)
function p._getObstacleCosts(obstacle)
local costs = {}
local costs = {}
local obstacleCosts = p.getObstacleCosts(obstacle)
local obstacleCosts = p.getObstacleCosts(obstacle)
Line 167: Line 167:


--Grabbing requirements to create
--Grabbing requirements to create
result = result..'|| ' .. formatObstacleRequirements(obst)
result = result..'|| ' .. p._getObstacleRequirements(obst)


--Finally, the cost
--Finally, the cost
result = result..'|| data-sort-value="'..obst.gpCost..'"|'..formatObstacleCosts(obst)
result = result..'|| data-sort-value="'..obst.gpCost..'"|'..p._getObstacleCosts(obst)
end
end


Line 201: Line 201:


--Finally, the cost
--Finally, the cost
result = result..'|| data-sort-value="'..pill.gpCost..'"|'..formatObstacleCosts(pill)
result = result..'|| data-sort-value="'..pill.gpCost..'"|'.. p._getObstacleCosts(pill)
end
end


2,875

edits