Module:HeroData: Difference between revisions

Jump to navigation Jump to search
Sur (talk | contribs)
m get_hero_var renamed to get_hero_stat
Sur (talk | contribs)
m if stat not found it retusn 0
Line 21: Line 21:
local var_value = hero[hero_stat_key]
local var_value = hero[hero_stat_key]
if(var_value == nil) then return 0 end


return var_value
return var_value