Anonymous

Module:Icons: Difference between revisions

From Melvor Idle
Added simple function to return SkillReq or AbyssalSkillReq based on a Boolean value
No edit summary
(Added simple function to return SkillReq or AbyssalSkillReq based on a Boolean value)
Line 1,097: Line 1,097:
args.noicon = true
args.noicon = true
return p.Icon({['args'] = args})
return p.Icon({['args'] = args})
end
function p._GetSkillReq(skill, level, showText, isAbyssal)
if isAbyssal == true then
return p._AbyssalSkillReq(skill, level, showText)
else
return p._SkillReq(skill, level, showText)
end
end
end