Add option to only compare stats for same jewel types. #6314
+40
−10
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 #6275 .
Description of the problem being solved:
When hovering on non-restricted (like timeless jewels) and non-cluster jewels in POB the tooltip that compares the benefits and drawbacks of adding the jewel to the build compares them to cluster jewels as well as per the image below:
![image](https://private-user-images.githubusercontent.com/8795161/259970456-72f67450-ffc0-4403-87f9-9b33330238e9.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0NDEzNDgsIm5iZiI6MTczOTQ0MTA0OCwicGF0aCI6Ii84Nzk1MTYxLzI1OTk3MDQ1Ni03MmY2NzQ1MC1mZmMwLTQ0MDMtODdmOS05YjMzMzMwMjM4ZTkucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxMyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTNUMTAwNDA4WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ODMyZjNkOTkxMzYxOTZjZTJiOWI3NmEzZjgwYjE3N2JhYzZkNjFiMzEzZjcxMmUzZjFhNWNkYWI5ZTQ2ZGQzZSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.Os_5HBWHpQM1Zggff2PClerURfDNSdzg9706OdbCxew)
Steps taken to verify a working solution:
Tooltip with option enabled.
Tooltip with option disabled.
Link to a build that showcases this PR:
https://pobb.in/fX8QA_1MH4ve
Before screenshot:
Cluster jewels present in tooltip.
After screenshot:
New option added to the options screen.
Cluster jewels no longer present in toolip.