Module:SkillUnlocks: Difference between revisions

Attempt to fix icon overrides for Mining
m (Pksage moved page Module:Sandbox/SkillUnlocks to Module:SkillUnlocks without leaving a redirect)
(Attempt to fix icon overrides for Mining)
Line 1,238: Line 1,238:
processed['entityName'] = gatherable.name
processed['entityName'] = gatherable.name
elseif skillName == 'Mining' then
elseif skillName == 'Mining' then
processed['subType'] = node.type
processed['subType'] = node.category
elseif skillName == 'Farming' then
elseif skillName == 'Farming' then
processed['entityName'] = gatherable.name
processed['entityName'] = gatherable.name
Line 1,391: Line 1,391:
if entity.subType == 'fish' then
if entity.subType == 'fish' then
iconType = 'item'
iconType = 'item'
elseif entity.subType == 'Essence' or entity.subType == 'Ore' or entity.subType == 'Gem' then
elseif Shared.contains({
'melvorD:Ore',
'melvorD:Essence',
'melvorD:Gem',
'melvorItA:AbyssalOre',
'melvorItA:AbyssalGem',
'melvorItA:Outcrop',
'melvorItA:AbyssalEssence'
}, entity.subType) then
iconType = 'rock'
iconType = 'rock'
else
else