Module:HeroData: Difference between revisions

Sur (talk | contribs)
m get_hero_var optional parameter to round to N sig figs
Sur (talk | contribs)
m stat infobox now hyperlinks except it doesnt work yet
Line 290: Line 290:
-- Check if icon file exists, and if not, don't use any image
-- Check if icon file exists, and if not, don't use any image
image_file_name = 'File:AttributeIcon' .. stat_name .. '.png'
image_file_name = 'File:AttributeIcon' .. stat_name .. '.png'
image_file = util_module.get_image_file(image_file_name)
image_file = util_module.get_image_file(image_file_name, 15, stat_name)
-- Add an empty cell following some stats to align them correctly as seen in game
-- Add an empty cell following some stats to align them correctly as seen in game