Toggle menu
505
2.3K
828
21.8K
Deadlock Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Module:AttributeData: Difference between revisions

From Deadlock Wiki
Sur (talk | contribs)
m round to 3 sig figs
Sur (talk | contribs)
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_name]
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