AutoReroll modifications for bugfixes, gemcan incrementing, and support for unique rerolling #7
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.
First pass, contains all modifications tested while rerolling 4x -15% stat rumour of pain belts (1/10000 chance).
Config ini options set if you want to have AR advance the gem can one slot when out of gems, or stop as expected.
Can now specify the number of Uniquestats you want matched on the item to the contents of GoodUniqueStats_ar.txt
Stats in GoodUniqueStats_ar.txt are pulled from the ItemStatCost.txt file located in the patch mpq. Follows the format of:
statId[tab]statName[tab]desiredValue[newline]
Also fixed a bug where the gemcan and canopener had swapped IDs, thus resulting in their pickup checks never resolving properly.
All other changes are mainly for Unique Rerolling, though the other forms of reroll will benefit from gem can incrementing.
Note: This is a preliminary version, these stat checks cannot be used on non-unique items currently. That will be an upcoming feature.
I believe I have tested the proper use cases, but I did not use AR much before this, so use at your own risk as always.