Module:Skills/Agility: Difference between revisions

Hopefully fixed issue with new agility obstacles not fitting into the table properly
(Added a getObstacles function which will be used by the in-progress ModifierTables module)
(Hopefully fixed issue with new agility obstacles not fitting into the table properly)
Line 47: Line 47:


   local catLog = {}
   local catLog = {}
  local Obstacles = Shared.clone(SkillData.Agility.Obstacles)
  table.sort(Obstacles, function(a, b) return a.category < b.category end)


   for i, obst in Shared.skpairs(SkillData.Agility.Obstacles) do
   for i, obst in Shared.skpairs(Obstacles) do
     result = result..'\r\n|-'
     result = result..'\r\n|-'
     result = result..'\r\n|'
     result = result..'\r\n|'