feat(UI): add iteration config for item group debug spawn test #5875
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.
Checklist
Required
main
so it won't cause conflict when updatingmain
branch later.Purpose of change
When testing item distributions in item groups we don't always need to check 100 or 1000 iterations of item spawning. Making it configurable seems like the best compromise to match user desire by allowing options for how accurate they want to be while testing an item group's spawns.
Compromise for #5033 and #5872
Describe the solution
Adds an additional picker UI for how many iterations to run while testing item group spawns. Provides logarithmic progression options: 10, 100, 1000, 10000. More options can be added, or it can be changed to a text input, in a future PR if these options are not satisfactory.
Describe alternatives you've considered
I'd like to make it so we don't need to spawn items at all, even temporary items, and make it purely mathematical. Pick an item group, and then it calculates the chance of an item to spawn as if there were infinite iterations.
Testing
Tested multiple item groups with multiple iteration selections, including invalid / exit selection. Works as expected
Additional context
Future work / idea:
Items that can spawn with some variation, such as UPS spawning with differing charge take up multiple lines in the results list. Future work would probably be to make a collapsible list for those so the root level of the results list would have
count of item type
and expanding would showcount of item type spawn values
.would become
and expand to