393
edits
No edit summary |
No edit summary |
||
Line 2: | Line 2: | ||
local GameData = require('Module:GameData') | local GameData = require('Module:GameData') | ||
function p.getSkillTreeNodes(checkFunc) | function p.getSkillTreeNodes(checkFunc) | ||
Line 23: | Line 22: | ||
end | end | ||
end | end | ||
end | |||
return nodes | |||
end | |||
function p.getSkillTree(skillName) | |||
mw.log(GameData.skillData) | |||
local skillData = GameData.skillData[skillName] | |||
if not skillData then return nil end | |||
local nodes = {} | |||
for _, node in ipairs(skillData.skillTrees[1].nodes) do | |||
table.insert(nodes, node) | |||
end | end | ||
return nodes | return nodes |
edits