|
|
Line 65: |
Line 65: |
| end | | end |
| end | | 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
| |
| -- Create a new table that includes the skill name and the node properties
| |
| local nodeWithSkill = {
| |
| skillName = skillName,
| |
| nodeData = node
| |
| }
| |
| table.insert(nodes, nodeWithSkill)
| |
| end
| |
| end
| |
| end
| |
| return nodes
| |
| end | | end |
|
| |
|