Module:HeroDataArrays: Difference between revisionsGive feedback
SerpentofSet (talk | contribs) Health table hopefully works? |
SerpentofSet (talk | contribs) mNo edit summary |
||
| Line 41: | Line 41: | ||
end | end | ||
p.heroHealthTable = function() | p.heroHealthTable = function(frame) | ||
heroHealthData = heroDataArray({"Name", "MaxHealth", "LevelScaling>Health"}) | heroHealthData = heroDataArray({"Name", "MaxHealth", "LevelScaling>Health"}) | ||
z = | z = "{| class=\"wikitable sortable\" \n".. | ||
"|+ Hero Base Health Stats \n".. | |||
|+ Hero Base Health Stats | "! Hero !! Starting !! Added per PI !! At Max PI \n" | ||
! Hero !! Starting !! Added per PI !! At Max PI | |||
for i,a in pairs(heroHealthData) do | for i,a in pairs(heroHealthData) do | ||
z=z.. | z = z.. | ||
"|- \n".. | |||
| {{ | "| "..frame:expandTemplate{title="PageRef", args={a["Name"], ['type']="Hero"}}.. | ||
" || "..a["MaxHealth"].." || "..a["LevelScaling>Health"].." || a billion \n" | |||
end | end | ||