4,951
edits
Falterfire (talk | contribs) (Adjusted p.getModifierText calls to reflect formatting changes) |
Falterfire (talk | contribs) (Added a getObstacles function which will be used by the in-progress ModifierTables module) |
||
Line 24: | Line 24: | ||
end | end | ||
return nil | return nil | ||
end | |||
function p.getObstacles(checkFunc) | |||
local result = {} | |||
for i, obst in Shared.skpairs(SkillData.Agility.Obstacles) do | |||
if checkFunc(obst) then | |||
local newObst = Shared.clone(obst) | |||
newObst.id = i - 1 | |||
table.insert(result, newObst) | |||
end | |||
end | |||
return result | |||
end | end | ||