Anonymous

Module:Sandbox/SkillTree: Difference between revisions

From Melvor Idle
on my evil arc
(wsg)
(on my evil arc)
Line 84: Line 84:
     -- Calculate levels for each node
     -- Calculate levels for each node
     local nodeLevels = calculateNodeLevels(skillNodes)
     local nodeLevels = calculateNodeLevels(skillNodes)
    -- Calculate maxLevel based on the calculated levels
    local maxLevel = 0
    for _, level in pairs(nodeLevels) do
        if level > maxLevel then
            maxLevel = level
        end
    end


     -- Constants for layout
     -- Constants for layout
Line 202: Line 210:
     return tostring(html)
     return tostring(html)
end
end


return p
return p
393

edits