Skip to content

Commit 4a71695

Browse files
MrHB212LocalIdentity
andauthored
Fix hidden oracle nodes being included in power report and added missing connector images (#2090)
* Update CalcsTab.lua * removed print * added missing connector images * Revert "added missing connector images" This reverts commit 5d20161. * Reapply "added missing connector images" This reverts commit c04fb1a. * Only hide nodes if they rely on a ascendancy node to be shows Wont hide the regular tree nodes that rely on other nodes to show up in the power report --------- Co-authored-by: LocalIdentity <localidentity2@gmail.com>
1 parent eec0f7b commit 4a71695

31 files changed

Lines changed: 16 additions & 4 deletions

src/Classes/CalcsTab.lua

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -546,10 +546,22 @@ function CalcsTabClass:PowerBuilder()
546546
for nodeId, node in pairs(self.build.spec.nodes) do
547547
wipeTable(node.power)
548548
if node.modKey ~= "" and not self.mainEnv.grantedPassives[nodeId] then
549-
distanceMap[node.pathDist or 1000] = distanceMap[node.pathDist or 1000] or { }
550-
distanceMap[node.pathDist or 1000][nodeId] = node
551-
if not (self.nodePowerMaxDepth and self.nodePowerMaxDepth < node.pathDist) then
552-
total = total + 1
549+
local hiddenByLockedAscendancyNode = false
550+
if node.unlockConstraint then
551+
for _, unlockNodeId in ipairs(node.unlockConstraint.nodes) do
552+
local unlockNode = self.build.spec.nodes[unlockNodeId]
553+
if unlockNode and unlockNode.ascendancyName and not unlockNode.alloc then
554+
hiddenByLockedAscendancyNode = true
555+
break
556+
end
557+
end
558+
end
559+
if not hiddenByLockedAscendancyNode then
560+
distanceMap[node.pathDist or 1000] = distanceMap[node.pathDist or 1000] or { }
561+
distanceMap[node.pathDist or 1000][nodeId] = node
562+
if not (self.nodePowerMaxDepth and self.nodePowerMaxDepth < node.pathDist) then
563+
total = total + 1
564+
end
553565
end
554566
end
555567
end
1.81 KB
Loading
281 KB
Loading
228 KB
Loading
160 KB
Loading
114 KB
Loading
76.1 KB
Loading
47.9 KB
Loading
34.1 KB
Loading
18.7 KB
Loading

0 commit comments

Comments
 (0)