@@ -37,6 +37,9 @@ for i, entry in ipairs(LISTED_STATUS_OPTIONS) do
3737 LISTED_STATUS_LABELS [i ] = entry .label
3838end
3939
40+ -- Node IDs below this value are normal passive tree nodes; IDs at or above are cluster jewel nodes
41+ local CLUSTER_NODE_OFFSET = 65536
42+
4043-- Layout constants (shared across Draw, DrawConfig, DrawItems, DrawCalcs, etc.)
4144local LAYOUT = {
4245 -- Main tab control bar
@@ -2401,7 +2404,7 @@ function CompareTabClass:ComparePowerBuilder(compareEntry, powerStat, categories
24012404 local compareNodes = compareEntry .spec and compareEntry .spec .allocNodes or {}
24022405 local primaryNodes = self .primaryBuild .spec and self .primaryBuild .spec .allocNodes or {}
24032406 for nodeId , node in pairs (compareNodes ) do
2404- if type (nodeId ) == " number" and nodeId < 65536 and not primaryNodes [nodeId ] then
2407+ if type (nodeId ) == " number" and nodeId < CLUSTER_NODE_OFFSET and not primaryNodes [nodeId ] then
24052408 local pNode = self .primaryBuild .spec .nodes [nodeId ]
24062409 if pNode and (pNode .type == " Normal" or pNode .type == " Notable" or pNode .type == " Keystone" ) and not pNode .ascendancyName then
24072410 total = total + 1
@@ -2520,7 +2523,7 @@ function CompareTabClass:ComparePowerBuilder(compareEntry, powerStat, categories
25202523 local cache = {}
25212524
25222525 for nodeId , _ in pairs (compareNodes ) do
2523- if type (nodeId ) == " number" and nodeId < 65536 and not primaryNodes [nodeId ] then
2526+ if type (nodeId ) == " number" and nodeId < CLUSTER_NODE_OFFSET and not primaryNodes [nodeId ] then
25242527 local pNode = self .primaryBuild .spec .nodes [nodeId ]
25252528 if pNode and (pNode .type == " Normal" or pNode .type == " Notable" or pNode .type == " Keystone" )
25262529 and not pNode .ascendancyName and pNode .modKey ~= " " then
0 commit comments