You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ifnode.type~="classStart" andnode.type~="ascendClassStart" then
181
+
ifnode.type~="ClassStart" andnode.type~="AscendClassStart" then
182
182
t_insert(a, m_floor(id/256))
183
183
t_insert(a, id%256)
184
184
end
@@ -263,7 +263,7 @@ end
263
263
-- Clear the allocated status of all non-class-start nodes
264
264
functionPassiveSpecClass:ResetNodes()
265
265
forid, nodeinpairs(self.nodes) do
266
-
ifnode.type~="classStart" andnode.type~="ascendClassStart" then
266
+
ifnode.type~="ClassStart" andnode.type~="AscendClassStart" then
267
267
node.alloc=false
268
268
self.allocNodes[id] =nil
269
269
end
@@ -320,15 +320,15 @@ end
320
320
functionPassiveSpecClass:CountAllocNodes()
321
321
localused, ascUsed, sockets=0, 0, 0
322
322
for_, nodeinpairs(self.allocNodes) do
323
-
ifnode.type~="classStart" andnode.type~="ascendClassStart" then
323
+
ifnode.type~="ClassStart" andnode.type~="AscendClassStart" then
324
324
ifnode.ascendancyNamethen
325
325
ifnotnode.isMultipleChoiceOptionthen
326
326
ascUsed=ascUsed+1
327
327
end
328
328
else
329
329
used=used+1
330
330
end
331
-
ifnode.type=="socket" then
331
+
ifnode.type=="Socket" then
332
332
sockets=sockets+1
333
333
end
334
334
end
@@ -348,8 +348,8 @@ function PassiveSpecClass:FindStartFromNode(node, visited, noAscend)
348
348
-- Either:
349
349
-- - the other node is a start node, or
350
350
-- - there is a path to a start node through the other node which didn't pass through any nodes which have already been visited
351
-
ifother.allocand (other.type=="classStart" orother.type=="ascendClassStart" or (notother.visitedandself:FindStartFromNode(other, visited, noAscend))) then
352
-
ifnotnoAscendorother.type~="ascendClassStart" then
351
+
ifother.allocand (other.type=="ClassStart" orother.type=="AscendClassStart" or (notother.visitedandself:FindStartFromNode(other, visited, noAscend))) then
352
+
ifnotnoAscendorother.type~="AscendClassStart" then
353
353
returntrue
354
354
end
355
355
end
@@ -375,7 +375,7 @@ function PassiveSpecClass:BuildPathFromNode(root)
375
375
-- 2. They cannot pass between different ascendancy classes or between an ascendancy class and the main tree
376
376
-- The one exception to that rule is that a path may start from an ascendancy node and pass into the main tree
377
377
-- This permits pathing from the Ascendant 'Path of the X' nodes into the respective class start areas
378
-
ifother.type~="classStart" andother.type~="ascendClassStart" andother.pathDist>curDistand (node.ascendancyName==other.ascendancyNameor (curDist==1andnotother.ascendancyName)) then
378
+
ifother.type~="ClassStart" andother.type~="AscendClassStart" andother.pathDist>curDistand (node.ascendancyName==other.ascendancyNameor (curDist==1andnotother.ascendancyName)) then
379
379
-- The shortest path to the other node is through the current node
380
380
other.pathDist=curDist
381
381
other.path=wipeTable(other.path)
@@ -400,7 +400,7 @@ function PassiveSpecClass:BuildAllDependsAndPaths()
400
400
forid, nodeinpairs(self.nodes) do
401
401
node.depends=wipeTable(node.depends)
402
402
node.dependsOnIntuitiveLeap=false
403
-
ifnode.type~="classStart" then
403
+
ifnode.type~="ClassStart" then
404
404
fornodeId, itemIdinpairs(self.jewels) do
405
405
ifself.allocNodes[nodeId] andself.nodes[nodeId].nodesInRadius[1][node.id] then
0 commit comments