Module:SkillUnlocks: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 10: Line 10:
local Items = require('Module:Items')
local Items = require('Module:Items')


local WEARABLES = {'Armour', 'Ring', 'Amulet'}
local CHECK_ITEMS = {'Attack', 'Strength', 'Defence', 'Ranged', 'Magic'}
local CHECK_ITEMS = {'Attack', 'Strength', 'Defence', 'Ranged', 'Magic'}


Line 79: Line 80:
if item.item.type == 'Weapon' then
if item.item.type == 'Weapon' then
verb = 'Wield '
verb = 'Wield '
elseif item.item.type == 'Armour' then
elseif Shared.contains(WEARABLES, item.item.type) then
verb = 'Wear '
verb = 'Wear '
end
end
73

edits