393
edits
No edit summary |
No edit summary |
||
Line 86: | Line 86: | ||
function p.getSkillTreeNodes(checkFunc) | function p.getSkillTreeNodes(checkFunc) | ||
local nodes = {} | local nodes = {} | ||
for | |||
for _, | for _, skillData in pairs(GameData.skillData) do | ||
local skillTrees = skillData.skillTrees | |||
if skillTrees then | |||
for _, skillTree in ipairs(skillTrees) do | |||
for _, node in ipairs(GameData.getEntities(skillTree.nodes, checkFunc)) do | |||
local nodeWithSkill = { | |||
skillName = "balls", | |||
nodeData = node | |||
} | |||
table.insert(nodes, nodeWithSkill) | |||
end | |||
end | end | ||
end | end | ||
Line 99: | Line 103: | ||
return nodes | return nodes | ||
end | end | ||
return p | return p |
edits