Anonymous

Module:Skills/Agility: Difference between revisions

From Melvor Idle
Formatting tweaks to obstacle course table
(Initial pass at creating the agility obstacle table)
(Formatting tweaks to obstacle course table)
Line 15: Line 15:
   result = '{| class="wikitable sortable stickyHeader"'
   result = '{| class="wikitable sortable stickyHeader"'
   result = result..'\r\n|- class="headerRow-0"'
   result = result..'\r\n|- class="headerRow-0"'
   result = result..'!Name!!Slot!!XP!!GP!!Time!!XP/s!!GP/s!!Bonuses!!Requirements!!Cost'
   result = result..'\r\n!Name!!Slot!!XP!!GP!!Time!!XP/s!!GP/s!!Bonuses!!Requirements!!Cost'


   for i, obst in Shared.skpairs(SkillData.Agility.Obstacles) do
   for i, obst in Shared.skpairs(SkillData.Agility.Obstacles) do
Line 26: Line 26:
     local Time = obst.interval / 1000
     local Time = obst.interval / 1000
     result = result..'||'..XP..'||data-sort-value="'..GP..'"|'..Icons.GP(GP)
     result = result..'||'..XP..'||data-sort-value="'..GP..'"|'..Icons.GP(GP)
     result = result..'||data-sort-value="'..Time..'"|'..Shared.timeString(Time)
     result = result..'||data-sort-value="'..Time..'"|'..Shared.timeString(Time, true)
     result = result..'||'..Shared.round(XP / Time, 2, 2)
     result = result..'||'..Shared.round(XP / Time, 2, 2)
     result = result..'||data-sort-value="'..GP/Time..'"|'..Icons.GP(Shared.round(GP/Time, 2, 2))
     result = result..'||data-sort-value="'..GP/Time..'"|'..Icons.GP(Shared.round(GP/Time, 2, 2))