Anonymous

Module:SkillUnlocks: Difference between revisions

From Melvor Idle
no edit summary
No edit summary
No edit summary
Line 32: Line 32:


function p._getSkillUnlockTable(skillName)
function p._getSkillUnlockTable(skillName)
skillName = skillName:lower()
local skillReqLabel = skillName:lower() .. 'LevelRequired'
local skillReqLabel = skillName .. 'LevelRequired'
local itemList = p._getAllItemsWithSkillRequirement(skillReqLabel)
local itemList = p._getAllItemsWithSkillRequirement(skillReqLabel)
Line 49: Line 48:
local resultPart = {}
local resultPart = {}
table.insert(resultPart, '{| class="wikitable"\r\n|-class="headerRow-0"')
table.insert(resultPart, '{| class="wikitable"\r\n|-class="headerRow-0"')
table.insert(resultPart, '\r\n!Level')
table.insert(resultPart, '\r\n!' .. Icons.Icon({skillName, type='skill', notext='true'}) .. ' Level')
table.insert(resultPart, '\r\n!Unlocks')
table.insert(resultPart, '\r\n!Unlocks')
73

edits