Thank you, but Sabresite those are not the trees reported by the calculator for that ID combo, but
13
0
14
0
Now, this is ok:
However this is not actually performed by the calculator
But something like:
(WW==XX) 13 == 0 = false
(WW==YY) 13 == 14 = false
(XX==YY) 0 == 14 = false
(WW==ZZ) 13 == 13 = true, 13+1 = 14 (recheck) (can't be 14) (can't be 15 then 0) (WW becomes 0)
(XX==ZZ) 0 == 13 = false
(YY==ZZ) 14 == 13 = false
for the actually reported trees to be possible, though reported order doesn't match
However your logic explains tree results for the swapped ID case:
TID = 37120 (9100) (YYZZ)
SID = 37521 (9291) (WWXX)
( 92 % 15 ) = 14 = WW
( 91 % 15 ) = 13 = XX
( 91 % 15 ) = 13 = YY
( 00 % 15 ) = 0 = ZZ
(WW==XX) 14 == 13 = false
(WW==YY) 14 == 13 = false
(XX==YY) 13 == 13 = true, 13+1 = 14 (XX becomes 14)
(WW==ZZ) 14 == 0 = false
(XX==ZZ) 14 == 0 = false
(YY==ZZ) 13 == 0 = false
14 (WW)
14 (XX)
13 (YY)
0 (ZZ)
Ok, although the tree order reported by calculator is 14, 13, 14, 0, so I'm not sure what's happening.
But again your logic doesn't explain calculated trees on this case
TID = 21504 (5400) (YYZZ)
SID = 10773 (2A15) (WWXX)
( 2A % 15 ) = 0 = WW
( 15 % 15 ) = 0 = XX
( 54 % 15 ) = 0 = YY
( 00 % 15 ) = 0 = ZZ
(WW==XX) 0 == 0 = true, 0+1 = 1 (WW becomes 1)
(WW==YY) 1 == 0 = false
(XX==YY) 0 == 0 = true, 0+1 = 1 (XX becomes 1)
(WW==ZZ) 1 == 0 = false
(XX==ZZ) 1 == 0 = false
(YY==ZZ) 0 == 0 = true, 0+1 = 1 (YY becomes 1)
1 (WW)
1 (XX)
1 (YY)
0 (ZZ)
Don't match calculator results, which are 0, 1, 2, 3