Skip to content
This repository was archived by the owner on Oct 21, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/Classes/PassiveTree.lua
Original file line number Diff line number Diff line change
Expand Up @@ -506,8 +506,9 @@
node.targetSize = self:GetNodeTargetSize(node)
node.overlay = self.nodeOverlay[node.type]
if node.overlay then
node.rsq = node.targetSize.width * node.targetSize.height
node.size = node.targetSize.width
local size = node.targetSize["overlay"] and node.targetSize["overlay"].width or node.targetSize.width
node.rsq = size * size
node.size = size
end

-- Derive the true position of the node
Expand All @@ -531,7 +532,7 @@

self:ProcessStats(node)

-- if this node isSwtichable then parse also subnodes

Check warning on line 535 in src/Classes/PassiveTree.lua

View workflow job for this annotation

GitHub Actions / spellcheck

Unknown word (Swtichable)
if node.isSwitchable or node.isAttribute then
for class, switchNode in pairs(node.options) do
setmetatable(switchNode, { __index = node })
Expand Down Expand Up @@ -578,9 +579,9 @@
local dist = m_sqrt(dx * dx + dy * dy)

if dist < r * 2 then
local perp = m_sqrt(r * r - (dist * dist) / 4) * (connection.orbit > 0 and 1 or -1)

Check warning on line 582 in src/Classes/PassiveTree.lua

View workflow job for this annotation

GitHub Actions / spellcheck

Unknown word (perp)
local cx = node1.x + dx / 2 + perp * (dy / dist)

Check warning on line 583 in src/Classes/PassiveTree.lua

View workflow job for this annotation

GitHub Actions / spellcheck

Unknown word (perp)
local cy = node1.y + dy / 2 - perp * (dx / dist)

Check warning on line 584 in src/Classes/PassiveTree.lua

View workflow job for this annotation

GitHub Actions / spellcheck

Unknown word (perp)

local angle1 = m_atan2(node1.y - cy, node1.x - cx)
local angle2 = m_atan2(node2.y - cy, node2.x - cx)
Expand Down
Loading