Repository navigation
Conversation
PowerBuilder cached each calculation by node.modKey. Nodes with the same stats share a modKey, but radius jewels (e.g. The Light of Meaning) apply their functions by node position, so such twins can be worth different amounts. Whichever twin was calculated first decided the heat map colour and Power Report value for all of them, and since that order comes from pairs(), it could change between launches. The cache key now also lists the radius jewels that reach the node. Twins outside every radius still share one calculation.
ArtemNA
marked this pull request as ready for review
November 25, 2026 09:36
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of the problem being solved:
PowerBuildercaches each calculation bynode.modKey. Nodes with the same stats share a modKey, but radius jewels such as The Light of Meaning apply their effects by node position, so two such nodes can be worth different amounts. Whichever of them was calculated first decided the heat map colour and Power Report value for all of them. That order comes frompairs(), so the result could also change between launches. The hover tooltip was not affected, since it recalculates the specific node.The cache key now also lists the radius jewels that reach the node. Nodes outside every radius still share one calculation, so the extra cost is small: 37 more calculations on top of 2072 in the build I tested. Masteries keep the old key, since radius jewel functions skip them.
Steps taken to verify a working solution:
node.powerafterPowerBuilder.Link to a build that showcases this PR:
https://pobb.in/FYMDI56vOBXC
Before screenshot:
The same build open in two windows of 2.69.0. The marked node inside the jewel radius has power in one window and none in the other.