Module:HeroDataArrays: Difference between revisionsGive feedback
Gammaton32 (talk | contribs) No edit summary |
Gammaton32 (talk | contribs) more dash stats |
||
| Line 583: | Line 583: | ||
p.heroDashTable = function(frame) | p.heroDashTable = function(frame) | ||
local heroDashData = heroDataArray({"Name", "GroundDashSpeed"}) | local heroDashData = heroDataArray({"Name", "GroundDashSpeed", "GroundDashDuration", "AirDashSpeed", "AirDashDuration"}) | ||
local rows = {} | local rows = {} | ||
| Line 589: | Line 589: | ||
table.insert(rows, { | table.insert(rows, { | ||
name = name, | name = name, | ||
dashSpeed = data["GroundDashSpeed"] or 0 | dashSpeed = data["GroundDashSpeed"] or 0, | ||
dashDuration = data["GroundDashDuration"] or 0, | |||
airDashSpeed = data["AirDashSpeed"] or 0, | |||
airDashDuration = data["AirDashDuration"] or 0, | |||
}) | }) | ||
end | end | ||
| Line 599: | Line 602: | ||
columns = { | columns = { | ||
{ label = "Dash Speed (m/s)", field = "dashSpeed" }, | { label = "Dash Speed (m/s)", field = "dashSpeed" }, | ||
{ label = "Dash Duration (s)", field = "dashDuration" }, | |||
{ label = "Air Dash Speed (m/s)", field = "airDashSpeed" }, | |||
{ label = "Air Dash Duration (s)", field = "airDashDuration" }, | |||
} | } | ||
} | } | ||