393
edits
No edit summary Tag: Manual revert |
No edit summary Tag: Reverted |
||
Line 38: | Line 38: | ||
function p.getSkillTreeNodesWithModifier(modifierCriteria) | function p.getSkillTreeNodesWithModifier(modifierCriteria) | ||
local nodesWithModifier = SkillTree.getSkillTreeNodes( | local nodesWithModifier = SkillTree.getSkillTreeNodes( | ||
function(node | function(entry) | ||
local node = entry.nodeData | |||
if node.modifiers ~= nil then | if node.modifiers ~= nil then | ||
local mods = Modifiers.getMatchingModifiers(node.modifiers, modifierCriteria) | local mods = Modifiers.getMatchingModifiers(node.modifiers, modifierCriteria) | ||
if not Shared.tableIsEmpty(mods.matched) then | |||
return entry | |||
end | |||
end | end | ||
return false | return false | ||
Line 292: | Line 295: | ||
local nodeList = p.getSkillTreeNodesWithModifier(modifierCriteria) | local nodeList = p.getSkillTreeNodesWithModifier(modifierCriteria) | ||
for i, | for i, entry in ipairs(nodeList) do | ||
local node = entry.nodeData | |||
local row = {} | local row = {} | ||
row.name = node.name | row.name = entry.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 311: | Line 315: | ||
table.insert(tableArray, row) | table.insert(tableArray, row) | ||
end | end | ||
local obstList = p.getObstaclesWithModifier(modifierCriteria) | local obstList = p.getObstaclesWithModifier(modifierCriteria) |
edits