Anonymous

Module:Skills/Agility: Difference between revisions

From Melvor Idle
Remporarily removing XP/s and Gp/s to reduce total column count.
(Tweaks to make sure all bonuses are properly processed)
(Remporarily removing XP/s and Gp/s to reduce total column count.)
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..'\r\n!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
  result = result..'!!Bonuses!!Requirements!!Cost'


   for i, obst in Shared.skpairs(SkillData.Agility.Obstacles) do
   for i, obst in Shared.skpairs(SkillData.Agility.Obstacles) do
Line 27: Line 28:
     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, true)
     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))


     local bonuses = {}
     local bonuses = {}