Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix unused Abyss Jewel deletion #4057

Merged

Conversation

Lothrik
Copy link
Contributor

@Lothrik Lothrik commented Feb 4, 2022

Fixes #4045.

Description of the problem being solved:

This fixes a bug where the "Delete Unused" button in the items tab would delete Abyss Jewels socketed in equipment slots, as they were never being checked due to flawed logic. It also optimizes FindSocketedJewel behavior in a few different locations, making the Delete Unused button more responsive.

Steps taken to verify a working solution:

  • Test deleting unused items and monitor speed + accuracy (what was deleted)
  • Test deleting several different items, one at a time
  • Test deleting all items

Link to a build that showcases this PR:

https://pastebin.com/ng1CBVN1

.. and optimize FindSocketedJewel behavior in a few different locations.
@Lothrik Lothrik added the bug Something isn't working label Feb 4, 2022
Copy link
Member

@Wires77 Wires77 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Wires77 Wires77 merged commit c41bcb6 into PathOfBuildingCommunity:dev Feb 4, 2022
@Lothrik Lothrik deleted the fix-unused-abyss-jewel-deletion branch February 4, 2022 08:23
@pHiney
Copy link
Contributor

pHiney commented Feb 4, 2022

Apologies.
This doesn't work on the test build. (https://pastebin.com/RWwqjuxe)

While the default item set is current, it appears to work, but switch to "Starter" and the Abyss jewel is deleted

X

@pHiney
Copy link
Contributor

pHiney commented Feb 4, 2022

I have a PR in waiting soon to be ready and then found yours, if your busy i'll just merge current dev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"Delete unused" deletes abyss jewels from belt
3 participants