More actions
m Hero Comparison now has SpinUp (Revving) stats for McGinnis and eventually Vandal |
Gammaton32 (talk | contribs) edited to include labs heroes |
||
(2 intermediate revisions by one other user not shown) | |||
Line 83: | Line 83: | ||
if (hero == nil) then return "Hero " .. hero_name .. " not found" end | if (hero == nil) then return "Hero " .. hero_name .. " not found" end | ||
local list = hero[var] | local list = hero[var] | ||
if (list == nil) then return " | if (list == nil) then return "" end | ||
local element = list[number_int] | local element = list[number_int] | ||
if (element == nil) then return "" end | if (element == nil) then return "" end | ||
Line 130: | Line 130: | ||
template_args = {} | template_args = {} | ||
template_args[1] = lang_module.get_string(item_key, 'en') | template_args[1] = lang_module.get_string(item_key, 'en') | ||
template_args[' | template_args['alt_name'] = localize(item_key, item_key) | ||
local expanded_template = mw.getCurrentFrame():expandTemplate{ title = template_title, args = template_args } | local expanded_template = mw.getCurrentFrame():expandTemplate{ title = template_title, args = template_args } | ||
str = str .. "* " .. expanded_template .. "\n" | str = str .. "* " .. expanded_template .. "\n" | ||
Line 482: | Line 482: | ||
in_development = hero_data["InDevelopment"] | in_development = hero_data["InDevelopment"] | ||
is_disabled = hero_data["IsDisabled"] | is_disabled = hero_data["IsDisabled"] | ||
if | if (not is_disabled) then | ||
--Add the row's stats | --Add the row's stats |