Skip to content

Exclude item-granted skills from gem socket positions - #10594

Open
zubSero wants to merge 3 commits into
PathOfBuildingCommunity:devfrom
zubSero:fix/10566-socketed-gem-indices
Open

zubSero wants to merge 3 commits into
PathOfBuildingCommunity:devfrom
zubSero:fix/10566-socketed-gem-indices

Conversation

@zubSero

@zubSero zubSero commented Nov 26, 2026 •

Copy link
Copy Markdown

Fixes #10566.

Description of the problem being solved:

Skills granted by an item (Death Walk on Bubonic Trail) were counted as if they sat in a socket. That pushed every real gem one socket along, so gems lost their matching socket colour bonus.

Item-granted skills are now skipped when working out which socket a gem is in. While I was there I also made the colour lookup use the gem's socket on the item instead of its position inside its own group. That was wrong for items with more than one link group, like Dialla's Malefaction, and Optimise Sockets had the same problem.

Steps taken to verify a working solution:

  • Added tests for the colour match, the quality bonus and Optimise Sockets, including a second link group on the same item.
  • Put Fireball, Molten Shell and Grace in blue, red and green Bubonic Trail sockets. All three get their bonus now.

Before screenshot:

The three gems without their matching socket bonus

After screenshot:

All three gems with their matching socket bonus

@zubSero
zubSero force-pushed the fix/10566-socketed-gem-indices branch from bcbea1a to e04e552 Compare November 27, 2026 11:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Equipment sockets incorrectly consider built-in skills

1 participant