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