Skip to content

Fix import losing the jewel in a Medium Cluster Jewel in a Large Jewel Socket - #10583

Open
juddisjudd wants to merge 1 commit into
PathOfBuildingCommunity:devfrom
juddisjudd:fix/medium-cluster-socket
Open

juddisjudd wants to merge 1 commit into
PathOfBuildingCommunity:devfrom
juddisjudd:fix/medium-cluster-socket

Conversation

@juddisjudd

Copy link
Copy Markdown
Contributor

Fixes #10063.

Description of the problem being solved:

A Medium Cluster Jewel in a Large Jewel Socket keeps its nodes in the large socket's proxy group, but the game takes its jewel socket from the downsized group. For a medium cluster in 7960 the game uses socket 16218, and PoB builds 29712 instead. A jewel imported into that socket has nowhere to go, so it is never equipped. TestImport_spec already noted the small cluster this loses on the sample character.

makeJewel now takes the socket from the downsized group that BuildLegacyProxyGroup builds. A build saved with a jewel on the old socket gets the jewel and the socket allocation moved to the new one when it loads.

Steps taken to verify a working solution:

  • Sample character: 3 cluster subgraphs instead of 2. Fulgent Bliss is socketed and allocated in 16218, and notables go from 29 to 30.
  • Character JSON from Jewel which is in medium cluster does not stay selected in slot #10063: Rain of Splinters is socketed and allocated in 16218. On dev it has no socket.
  • A build saved on dev with the small cluster in 29712 loads with it in 16218 and the same 133 allocated nodes.
  • TestImport_spec: updated the subgraph and notable counts and added a test for the saved-build case. Both fail on dev and pass with this change. The other cluster-related specs give the same results as dev.

Link to a build that showcases this PR:

The character JSON in #10063.

…l Socket

A Medium Cluster Jewel in a Large Jewel Socket keeps its nodes in the
large socket's proxy group, but the game takes its jewel socket from the
downsized group (16218 for the medium cluster in 7960). PoB took the
socket from the large group (29712), so the jewel the game puts there was
never socketed. The import test noted the small cluster it lost.

Builds saved with a jewel on the old socket move it to the new one when
they load.
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.

Jewel which is in medium cluster does not stay selected in slot

1 participant