Skip to content

Commit

Permalink
Revert "Fix passive tree coordinate calculation"
Browse files Browse the repository at this point in the history
This reverts commit c167db0.
  • Loading branch information
Openarl committed Dec 8, 2019
1 parent 7bf7c89 commit 2e30804
Showing 1 changed file with 2 additions and 48 deletions.
50 changes: 2 additions & 48 deletions Classes/PassiveTree.lua
Original file line number Diff line number Diff line change
Expand Up @@ -170,49 +170,7 @@ local PassiveTreeClass = newClass("PassiveTree", function(self, treeVersion)
self.notableMap = { }
local nodeMap = { }
local sockets = { }
local orbitMult = { [0] = 0, m_pi / 3, m_pi / 6, m_pi / 6 }
local orbitMultFull = {
[0] = 0,
[1] = 10 * m_pi / 180,
[2] = 20 * m_pi / 180,
[3] = 30 * m_pi / 180,
[4] = 40 * m_pi / 180,
[5] = 45 * m_pi / 180,
[6] = 50 * m_pi / 180,
[7] = 60 * m_pi / 180,
[8] = 70 * m_pi / 180,
[9] = 80 * m_pi / 180,
[10] = 90 * m_pi / 180,
[11] = 100 * m_pi / 180,
[12] = 110 * m_pi / 180,
[13] = 120 * m_pi / 180,
[14] = 130 * m_pi / 180,
[15] = 135 * m_pi / 180,
[16] = 140 * m_pi / 180,
[17] = 150 * m_pi / 180,
[18] = 160 * m_pi / 180,
[19] = 170 * m_pi / 180,
[20] = 180 * m_pi / 180,
[21] = 190 * m_pi / 180,
[22] = 200 * m_pi / 180,
[23] = 210 * m_pi / 180,
[24] = 220 * m_pi / 180,
[25] = 225 * m_pi / 180,
[26] = 230 * m_pi / 180,
[27] = 240 * m_pi / 180,
[28] = 250 * m_pi / 180,
[29] = 260 * m_pi / 180,
[30] = 270 * m_pi / 180,
[31] = 280 * m_pi / 180,
[32] = 290 * m_pi / 180,
[33] = 300 * m_pi / 180,
[34] = 310 * m_pi / 180,
[35] = 315 * m_pi / 180,
[36] = 320 * m_pi / 180,
[37] = 330 * m_pi / 180,
[38] = 340 * m_pi / 180,
[39] = 350 * m_pi / 180,
}
local orbitMult = { [0] = 0, m_pi / 3, m_pi / 6, m_pi / 6, m_pi / 20 }
local orbitDist = { [0] = 0, 82, 162, 335, 493 }
for _, node in pairs(self.nodes) do
node.meta = { __index = node }
Expand Down Expand Up @@ -263,11 +221,7 @@ local PassiveTreeClass = newClass("PassiveTree", function(self, treeVersion)
group.isAscendancyStart = true
end
node.group = group
if node.o ~= 4 then
node.angle = node.oidx * orbitMult[node.o]
else
node.angle = orbitMultFull[node.oidx]
end
node.angle = node.oidx * orbitMult[node.o]
local dist = orbitDist[node.o]
node.x = group.x + m_sin(node.angle) * dist
node.y = group.y - m_cos(node.angle) * dist
Expand Down

0 comments on commit 2e30804

Please sign in to comment.