Editing Module:Abilities/iconGive feedback
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
| Latest revision | Your text | ||
| Line 41: | Line 41: | ||
end | end | ||
return string.format('[[File:%s|%s|link=%s]]', icon.img or '', icon.size or ' | return string.format('[[File:%s|%s|link=%s]]', icon.img or '', icon.size or '', icon.link or '') | ||
end | end | ||
-- List of scaling type attributes | -- List of scaling type attributes | ||
local SCALING_ICON_MAP = { | local SCALING_ICON_MAP = { | ||
["spirit"] = { class = "spirit", icon = "File:Spirit scaling.png", link = "Spirit Power#Spirit Power Scaling", size = " | ["spirit"] = { class = "spirit", icon = "File:Spirit scaling.png", link = "Spirit Power#Spirit Power Scaling", size = "40px" }, | ||
["stats_count"] = { class = "spirit", icon = "File:Spirit scaling.png", link = "Spirit Power#Spirit Power Scaling", size = " | ["stats_count"] = { class = "spirit", icon = "File:Spirit scaling.png", link = "Spirit Power#Spirit Power Scaling", size = "18px" }, | ||
["weapon_power"] = { class = "weapon", icon = "File:Weapon scaling.png", link = "Weapon Damage#Weapon Damage Scaling", size = " | ["weapon_power"] = { class = "weapon", icon = "File:Weapon scaling.png", link = "Weapon Damage#Weapon Damage Scaling", size = "40px" }, | ||
["weapon_damage_increase"] = { class = "weapon", icon = "File:Weapon scaling.png", link = "Weapon Damage#Weapon Damage Scaling", size = " | ["weapon_damage_increase"] = { class = "weapon", icon = "File:Weapon scaling.png", link = "Weapon Damage#Weapon Damage Scaling", size = "40px" }, | ||
["melee"] = { class = " | ["melee"] = { class = "weapon", icon = "File:Melee scaling.png", link = "Melee Damage#Abilities", size = "40px" }, | ||
["heavy_melee"] = { class = " | ["heavy_melee"] = { class = "weapon", icon = "File:Melee scaling.png", link = "Melee Damage#Abilities", size = "40px" }, | ||
["power_increase"] = { class = "boon", icon = "File:Boon scaling.png", link = "Boon", size = " | ["power_increase"] = { class = "boon", icon = "File:Boon scaling.png", link = "Boon", size = "25px" }, -- Boon icon has to be smaller than others | ||
["duration"] = { class = "default" }, -- Use "default" if the scaling is unused | |||
["duration"] = { class = "default" }, | |||
} | } | ||
function getScalarIcon(scaleType) | function getScalarIcon(scaleType) | ||
return SCALING_ICON_MAP[scaleType] | return SCALING_ICON_MAP[scaleType] | ||
end | end | ||