Skip to content

Fix Cluster Jewel imports not allocating correctly#7270

Merged
LocalIdentity merged 2 commits into
PathOfBuildingCommunity:devfrom
sida-wang:fix-cluster-import
Jan 21, 2024
Merged

Fix Cluster Jewel imports not allocating correctly#7270
LocalIdentity merged 2 commits into
PathOfBuildingCommunity:devfrom
sida-wang:fix-cluster-import

Conversation

@sida-wang
Copy link
Copy Markdown
Contributor

  • Tidy up in BuildClusterJewelGraphs() to prevent allocSubgraphNodes and allocExtendedNodes from having duplicate nodes
  • Add in orbitOffsets into ClusterJewels.lua via export. Credit to Wires77 Export cluster jewel index data, mess with jewel rendering logic #4302 for figuring this out
  • Update the logic that calculates the orbitIndex in BuildSubgraph to use orbitOffsets

Fixes #7210 .

Description of the problem being solved:

Cluster Jewel imports were not being imported correctly due to the downsizing of proxy groups. This PR updates the process by using StartIndices from PassiveJewelSlots.lua to set the orbit index offsets for respective orbit sizes.

Positioning of the cluster jewel passives also now accurately in-game visuals as a result of this PR.

Steps taken to verify a working solution:

  • Tested import from linked issue.

After screenshot:

image

sida-wang and others added 2 commits January 21, 2024 01:43
- Tidy up in BuildClusterJewelGraphs() to prevent allocSubgraphNodes and allocExtendedNodes from having duplicate nodes
- Add in orbitOffsets into ClusterJewels.lua via export. Credit to Wires77 PathOfBuildingCommunity#4302 for figuring this out
- Update the logic that calculates the orbitIndex in BuildSubgraph to use orbitOffsets
@Wires77
Copy link
Copy Markdown
Member

Wires77 commented Jan 20, 2024

This is great, so glad you figured it out. I spent a long time staring at this code trying to find the issue previously to no avail.

@sida-wang sida-wang added the bug: behaviour Behavioral differences label Jan 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug: behaviour Behavioral differences

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Small cluster jewels nodes are not allocated (related to wrong orbit indexes)

3 participants