Module:HeroData: Difference between revisions

Sur (talk | contribs)
m if lang is missing a postfix, use no postfix
Sur (talk | contribs)
m only dps in infobox made brown
Line 184: Line 184:
-- Create the template'd icon
-- Create the template'd icon
local icon_color
local icon_color
if (category == "Weapon") then  
if (stat_name == "DPS") then  
icon_color = "Brown"
icon_color = "Brown"
elseif (category == "Vitality") then
else
icon_color = "Grey"
icon_color = "Grey"
end
end