Module:HeroDataArrays: Difference between revisionsGive feedback
SerpentofSet (talk | contribs) mNo edit summary |
SerpentofSet (talk | contribs) mNo edit summary |
||
| Line 44: | Line 44: | ||
heroHealthData = heroDataArray({"Name", "MaxHealth", "LevelScaling>Health"}) | heroHealthData = heroDataArray({"Name", "MaxHealth", "LevelScaling>Health"}) | ||
z = "{| class=\"wikitable sortable mw-collapsible\" \n".. | z = "{| class=\"wikitable sortable mw-collapsible\" style=\"text-align:center\" \n".. | ||
"|+ Hero Base Health Stats \n".. | "|+ Hero Base Health Stats \n".. | ||
"! Hero !! | "! Hero !! Starting !! Added per PI !! At Max PI \n" | ||
for i,a in pairs(heroHealthData) do | for i,a in pairs(heroHealthData) do | ||
z = z.. | z = z.. | ||
"|- \n".. | "|- \n".. | ||
"| "..frame:expandTemplate{title="PageRef", args={a["Name"], ['type']="Hero"}}.. | "| style=\"text-align:left;\" | "..frame:expandTemplate{title="PageRef", args={a["Name"], ['type']="Hero"}}.. | ||
" || "..a["MaxHealth"].." || +"..a["LevelScaling>Health"].." || ".. | " || "..a["MaxHealth"].." || +"..a["LevelScaling>Health"].." || ".. | ||
tostring(tonumber(a["MaxHealth"])+tonumber(a["LevelScaling>Health"])*14).." \n" | tostring(tonumber(a["MaxHealth"])+tonumber(a["LevelScaling>Health"])*14).." \n" | ||