Repository navigation
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
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: