Skip to content

Recognise Twice Corrupted, tiered Unidentified and Fated item text - #10624

Open
zubSero wants to merge 2 commits into
PathOfBuildingCommunity:devfrom
zubSero:fix/330-item-import-tiers
Open

zubSero wants to merge 2 commits into
PathOfBuildingCommunity:devfrom
zubSero:fix/330-item-import-tiers

Conversation

@zubSero

@zubSero zubSero commented Nov 27, 2026 •

Copy link
Copy Markdown

Description of the problem being solved:

Two 3.30 item text changes didn't import correctly.

Twice Corrupted: items corrupted a second time (Djinn-Touched Vaal Orb, Altar of Corruption, Lapidary Lens) show "Twice Corrupted" where the "Corrupted" line used to be. PoB didn't know that line, so the item wasn't flagged as corrupted, and on uniques the line ended up as an unparsed explicit mod. Corrupted conditions (e.g. corrupted jewel effect) didn't apply to these items either. They now count as corrupted, keep the "Twice Corrupted" label when saved and show it in the tooltip.

Tiered items: since 3.30 unidentified tiered items show the tier on the unidentified line, e.g. "Unidentified (Tier 5)". PoB only checked for an exact "Unidentified", so an unidentified tiered rare had its base line read as the item name, ended up with no base, and the item errored when saved. On magic items the line came through as an unparsed mod. Both forms of the unidentified line are now recognised and skipped as mod lines.

I also made pasted Fated items import. In 3.30 an unidentified rare dropped by a Fate-empowered boss shows "Fated " in front of its base name, for example "Fated Geodesic Ring" (client string FatedItem = "Fated {0}" in the 3.30.0.4 ClientStrings, and a copied sample of that ring, both collected in RadioactiveCheese/krangled-poe-trade#90). PoB looked up the whole line as a base name, found nothing and rejected the item. ParseRaw now strips "Fated " the same way it already strips "Superior ", "Synthesised " and "Vestigial ". According to the poewiki Fate page the label only exists on unidentified rares and goes away when the item is identified, and it only steers which mods roll on identification, so there is nothing to calculate. I did not add a flag for it. The pasted name is kept as the item title like for any other unidentified rare, so it survives save and reload. I could not find a copied sample with quality, so both "Superior Fated X" and "Fated Superior X" are accepted.

Sources:

I haven't checked in game that an identified tiered item has no tier line left. The client strings only append the tier to the unidentified line, so I assumed it goes away on identification. I also didn't touch character import from the API, since I don't know whether it reports twice corrupted separately.

Steps taken to verify a working solution:

  • Added tests to TestItemParse_spec.lua with pasted Twice Corrupted items and unidentified tiered rare and magic items, including a save and reload. They fail on dev and pass with this change.
  • Added a test with the copied Fated ring, both quality orders and a magic item, including a save and reload, and that the unique Fated End isn't changed. It fails without the Fated change.
  • Ran the full test suite.
  • Pasted the same items in the headless build and checked base, corrupted flag and mod lines before and after the change.

Items corrupted a second time show "Twice Corrupted" and unidentified
tiered items show "Unidentified (Tier N)" since 3.30. Treat the first as
corrupted and keep the label on save, and skip both unidentified lines
instead of reading them as mods.
Since 3.30 an unidentified rare dropped by a Fate-empowered boss shows
"Fated " before its base name (client string "Fated {0}"), so the base
was not found and the pasted item was rejected. Strip the label when
resolving the base, like Superior, Synthesised and Vestigial.
@zubSero zubSero changed the title Recognise Twice Corrupted and tiered Unidentified item text Recognise Twice Corrupted, tiered Unidentified and Fated item text Nov 27, 2026
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