More actions
m round to 3 sig figs |
m use alternate name instead of stat name |
||
Line 85: | Line 85: | ||
-- check if the stat's alternate_name is in hero data | -- check if the stat's alternate_name is in hero data | ||
stat_value = hero_data[ | stat_value = hero_data[alternate_name] | ||
if (stat_value == nil) then stat_value = 0 end --default to 0 if not present | if (stat_value == nil) then stat_value = 0 end --default to 0 if not present | ||