|
|
| Line 8: |
Line 8: |
| -- Maps attr type to an appropriate image and page link | | -- Maps attr type to an appropriate image and page link |
| -- Optional icon size, will be defaulted on the template | | -- Optional icon size, will be defaulted on the template |
| local ATTR_TYPE_ICON_MAP = { | | local ATTR_TYPE_ICON_MAP = require("Module:Icon/attr") |
| bullet_armor_up = {img='Bullet_Armor.png', link='Damage_Resistance', color = 'NoColor'},
| | |
| bullet_armor_down = {img='Bullet_Armor.png', link='Damage_Resistance', color = 'NoColor'},
| |
| cast = {img='AttributeIconMaxChargesIncrease.png', link=''},
| |
| charges = {img='AttributeIconMaxChargesIncrease.png', link='', color = 'Purple'},
| |
| damage = {img='Damage_heart.png', link='', color = 'NoColor'}, -- 'NoColor' will apply no icon color and use the original image
| |
| bullet_damage = {img='Bullet_damage.png', link='Bullet_Damage', color = 'NoColor'},
| |
| fire_rate = {img='Fire Rate.png', link='Fire_Rate', color = 'Brown'},
| |
| healing = {img='Healing.png', link='Healing', color = 'Green'},
| |
| health = {img='Health.png', link='Health', color = 'Green'},
| |
| move_speed = {img='Move speed.png', link='Move Speed', color = 'Green'},
| |
| range = {img='CastRange.png', link='Ability_Range', color = 'Purple'},
| |
| radius = {img='CastRange.png', link='Ability_Range', color = 'Purple'},
| |
| tech_armor_up = {img='Spirit_Armor.png', link='Damage_Resistance', color = 'NoColor'},
| |
| tech_damage = {img='AttributeIconTechShieldHealth.png', link='Spirit_Damage', color = 'NoColor',size = '12px'},
| |
| distance = {img='AttributeIconTechRange.png', link='Ability_Range', color = 'Purple'},
| |
| duration = {img='AttributeIconTechDuration.png', link='Ability Duration', color = 'Purple'},
| |
| slow = {img='MoveSlow.png', link='', color = 'Purple'},
| |
| melee_damage = {img='Melee damage.png', link='Melee Damage'},
| |
| cooldown = {img='Cooldown Icon.png', link='Ability Cooldown', color = 'Purple'},
| |
| combat_barrier = {img='Barrier.png', link='Barrier', color = 'Green'},
| |
| time = {img='AttributeIconTechDuration.png', link='Ability Duration', color = 'Purple'},
| |
| }
| |
|
| |
|
| -- TODO - replace this with utils file | | -- TODO - replace this with utils file |