Module:HeroData: Difference between revisions

Sur (talk | contribs)
m bugfix for get_list_elem
Sur (talk | contribs)
m fixed sig_figs not rounding anymore
Line 42: Line 42:
--round
--round
if (sig_figs ~= nil) then
if (sig_figs_or_localize ~= nil) then
var_value = util_module.round_to_sig_fig(var_value, sig_figs)
var_value = util_module.round_to_sig_fig(var_value, sig_figs_or_localize)
if (var_value == nil) then return "get_hero_var() error with rounding" end
if (var_value == nil) then return "get_hero_var() error with rounding" end
end
end