Module:Sandbox/SkillTree: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 29: Line 29:
mw.log(GameData.skillData)
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
    return nodes
end
local p = {}
local GameData = require('Module:GameData')
function p.getSkillTreeNodesFromSkillName(skillName)
     local skillData = GameData.skillData[skillName]
     local skillData = GameData.skillData[skillName]
     if not skillData then return nil end
     if not skillData then return nil end
393

edits