Anonymous

Module:ModifierTables/Sandbox: Difference between revisions

From Melvor Idle
no edit summary
No edit summary
No edit summary
Line 295: Line 295:
local nodeList = p.getSkillTreeNodesWithModifier(modifierCriteria)
local nodeList = p.getSkillTreeNodesWithModifier(modifierCriteria)
for i, entry in ipairs(nodeList) do
for i, nodeWithSkill in ipairs(nodeList) do
    local node = entry.nodeData
    local node = nodeWithSkill.nodeData
    local skillName = nodeWithSkill.skillName
    local row = {}
    local row = {}
    row.name = entry.skillName .. " - " .. node.name
   
    -- Display the skill name alongside the node name
    row.name = skillName .. " - " .. node.name
   
    row.icon = Icons.Icon({'SkillTree%23'..string.gsub(node.name, ' ', ''), node.name, type='skill', img='SkillTree'})
    row.icon = Icons.Icon({'SkillTree%23'..string.gsub(node.name, ' ', ''), node.name, type='skill', img='SkillTree'})
    row.expIcon = Icons.getDLCColumnIcon(node.id)
    row.expIcon = Icons.getDLCColumnIcon(node.id)
Line 315: Line 319:
    table.insert(tableArray, row)
    table.insert(tableArray, row)
end
end


local obstList = p.getObstaclesWithModifier(modifierCriteria)
local obstList = p.getObstaclesWithModifier(modifierCriteria)
393

edits