Repository navigation
Conversation
Reclaimed Malevolence and the other abyss timeless jewels can turn a passive into two lines with the same roll range, such as "Minions have (2-3)% increased Attack Speed" and "Minions have (2-3)% increased Cast Speed". Every stat was substituted into every line in pairs() order, so whichever stat came first filled both lines, and the result changed between PoB sessions. When a passive has one stat per line, each line now takes only its own stat's roll. Lines holding several stats, such as "12 to (17-19) Added Spell Cold Damage while Dual Wielding", still take all of them, now in a fixed order. Reported in issue 10432.
Hard-code the conquered node and the legion local id in the test, as the other tests of the file do, and describe the multi-stat case without quoting modifier texts.
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.
Fixes #10432.
Description of the problem being solved:
An Abyss timeless jewel can give a conquered passive two lines whose stats share a roll range, such as minion Attack Speed and minion Cast Speed, both
(2-3)%. PoB put the same rolled value on both lines, even when the jewel rolled different values for the two stats, and the calculation used that value for both. Which roll appeared depended onpairs()order, so it could change from one PoB session to the next.Each line now takes the roll of its own stat. A line holding several stats, such as an added damage range, still takes all of their rolls, which is why every line is not mapped to a single stat as the issue suggests.
Steps taken to verify a working solution:
pairs()visits first.Before screenshot:
After screenshot: