393
edits
No edit summary |
No edit summary |
||
Line 69: | Line 69: | ||
function p.getSkillTreeNodes(checkFunc) | function p.getSkillTreeNodes(checkFunc) | ||
local nodes = {} | local nodes = {} | ||
for skillName, skill in pairs(SkillData) do | |||
for | for _, tree in ipairs(skill.skillTrees or {}) do | ||
for _, node in ipairs(GameData.getEntities(tree.nodes, checkFunc)) do | |||
node.skillName = skillName | |||
table.insert(nodes, node) | |||
end | end | ||
end | end |
edits