Anonymous

Module:ModifierTables/Sandbox: Difference between revisions

From Melvor Idle
no edit summary
No edit summary
Tag: Reverted
No edit summary
Tag: Reverted
Line 298: Line 298:
local nodeList = p.getSkillTreeNodesWithModifier(modifierCriteria)
local nodeList = p.getSkillTreeNodesWithModifier(modifierCriteria)
for i, nodeWithSkill in ipairs(nodeList) do
for i, node in ipairs(nodeList) do
    local node = nodeWithSkill.nodeData
    local skillName = nodeWithSkill.skillName
    local row = {}
    local row = {}
   
    row.name = 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)
393

edits