Skip to content

Fix corrupted status on unique item variants - #10578

Open
AdamZ-8113 wants to merge 1 commit into
PathOfBuildingCommunity:devfrom
AdamZ-8113:fix/variant-corruption
Open

AdamZ-8113 wants to merge 1 commit into
PathOfBuildingCommunity:devfrom
AdamZ-8113:fix/variant-corruption

Conversation

@AdamZ-8113

Copy link
Copy Markdown
Contributor

Description of the problem being solved:

Some unique items, such as Careful Planning, Blightwell, and Doryani's Delusion have Corrupted on only certain variants. PoB treats that line as an unsupported modifier instead of marking the item as corrupted, so it doesn't show the normal Corrupted label or use the corrupted item state.

This is because the variant tag prevents the line from matching the normal Corrupted check. This change applies the corrupted state for the selected variant and keeps separately applied corruption when switching variants. It also keeps the line out of modifier displays and Buy Similar filters.

Steps taken to verify a working solution:

  • Added tests for switching Careful Planning variants, saving and loading the item, and preserving separately applied corruption.
  • Added a test that variant corruption isn't included in modifier comparisons or Buy Similar filters.
  • Ran the item parser, Compare tab, and Buy Similar tests.

Link to a build that showcases this PR:

https://pob.codes/b/88BiQ3oJiJQ

Before screenshot:

image

After screenshot:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant