Module:HeroDataArrays: Difference between revisionsGive feedback
Jump to navigation
Jump to search
SerpentofSet (talk | contribs) m type is deprecated |
SerpentofSet (talk | contribs) m key got renamed |
||
| Line 43: | Line 43: | ||
p.heroHealthTable = function(frame) | p.heroHealthTable = function(frame) | ||
-- Pull data | -- Pull data | ||
heroHealthData = heroDataArray({"Name", "MaxHealth", "LevelScaling> | heroHealthData = heroDataArray({"Name", "MaxHealth", "LevelScaling>MaxHealth"}) | ||
-- Input table will be called a, output wikitable will be called z | -- Input table will be called a, output wikitable will be called z | ||
| Line 57: | Line 57: | ||
"| style=\"text-align:left;\" | ".. | "| style=\"text-align:left;\" | ".. | ||
frame:expandTemplate{title="PageRef", args={a["Name"]}}.. | frame:expandTemplate{title="PageRef", args={a["Name"]}}.. | ||
" || "..a["MaxHealth"].." || +"..a["LevelScaling> | " || "..a["MaxHealth"].." || +"..a["LevelScaling>MaxHealth"].." || ".. | ||
tostring(tonumber(a["MaxHealth"])+tonumber(a["LevelScaling> | tostring(tonumber(a["MaxHealth"])+tonumber(a["LevelScaling>MaxHealth"])*14).." \n" | ||
end | end | ||