Looks like during item comparisons, the listeners are being passed the item that the owner of the item you're hovering over is wearing, rather than the equipped item of the currently selected char
Easier-to-understand example:
Red Prince is wearing amulet X
Sebille is wearing amulet Y
Sebille hovers over amulet Z in Red Prince's inventory
Tooltips are created for item Z and Y, but the Game.Tooltip listeners receive items Z and X - in other words, it's as if Red Prince was comparing the item
Same thing happens with offhand comparisons, the item owner's equipped offhand is passed, not the offhand of the character looking at the tooltip
here I'm printing the names of the passed EclItems in a tooltip listener; you can see that the item being hovered over is right ("Falcon's Eye") but the equipped item is not correct - it's the amulet being worn by the character that has Falcon's Eye in his inventory
The issue stems from here. Replacing the GetPlayerHandle call with ex. one from statusConsole fixes the issue.
Looks like during item comparisons, the listeners are being passed the item that the owner of the item you're hovering over is wearing, rather than the equipped item of the currently selected char
Easier-to-understand example:
Same thing happens with offhand comparisons, the item owner's equipped offhand is passed, not the offhand of the character looking at the tooltip here I'm printing the names of the passed EclItems in a tooltip listener; you can see that the item being hovered over is right ("Falcon's Eye") but the equipped item is not correct - it's the amulet being worn by the character that has Falcon's Eye in his inventory
The issue stems from here. Replacing the
GetPlayerHandle
call with ex. one fromstatusConsole
fixes the issue.