Module:HeroDataArrays: Difference between revisionsGive feedback
Jump to navigation
Jump to search
Gammaton32 (talk | contribs) remove heroes without name to fix bug with werewolf |
Gammaton32 (talk | contribs) changed dash duration to dash speed |
||
| Line 410: | Line 410: | ||
p.heroDashTable = function(frame) | p.heroDashTable = function(frame) | ||
local heroDashData = heroDataArray({"Name", " | 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. | 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;" | ' .. | ||