393
edits
No edit summary |
(THIS SHIT IS EVIL!!!) |
||
Line 70: | Line 70: | ||
local nodes = {} | local nodes = {} | ||
for | for skillName, skillData in pairs(GameData.skillData) do | ||
local skillTrees = skillData.skillTrees | local skillTrees = skillData.skillTrees | ||
if skillTrees then | if skillTrees then | ||
for _, skillTree in ipairs(skillTrees) do | for _, skillTree in ipairs(skillTrees) do | ||
for _, node in ipairs(GameData.getEntities(skillTree.nodes, checkFunc)) do | for _, node in ipairs(GameData.getEntities(skillTree.nodes, checkFunc)) do | ||
local nodeCopy = {} | |||
table.insert(nodes, | for k, v in pairs(node) do | ||
nodeCopy[k] = v | |||
end | |||
nodeCopy.skillName = skillName | |||
table.insert(nodes, nodeCopy) | |||
end | end | ||
end | end |
edits