Module:HeroDataArrays: Difference between revisions

Jump to navigation Jump to search
remove heroes without name to fix bug with werewolf
changed dash duration to dash speed
Line 410: Line 410:


p.heroDashTable = function(frame)
p.heroDashTable = function(frame)
     local heroDashData = heroDataArray({"Name", "GroundDashDuration"})
     local heroDashData = heroDataArray({"Name", "GroundDashSpeed"})


     local rows = {}
     local rows = {}
Line 416: Line 416:
         table.insert(rows, {
         table.insert(rows, {
             name    = name,
             name    = name,
             duration = tonumber(data.GroundDashDuration) or 0
             duration = tonumber(data.GroundDashSpeed) or 0
         })
         })
     end
     end
Line 423: Line 423:
     local z = '{| class="wikitable sortable mw-collapsible" style="text-align:center"\n' ..
     local z = '{| class="wikitable sortable mw-collapsible" style="text-align:center"\n' ..
               '|+ Hero Base Dash Speed Stats\n' ..
               '|+ Hero Base Dash Speed Stats\n' ..
               '! Hero !! Dash Speed (s)\n'
               '! Hero !! Dash Speed (m/s)\n'
     for _, r in ipairs(rows) do
     for _, r in ipairs(rows) do
         z = z .. '|-\n| style="text-align:left;" | ' ..
         z = z .. '|-\n| style="text-align:left;" | ' ..