Skip to content

Preserve explicit modifiers after multiline implicit imports - #10564

Open
mcagnion wants to merge 2 commits into
PathOfBuildingCommunity:devfrom
mcagnion:bugfix/multiline-implicit-count
Open

mcagnion wants to merge 2 commits into
PathOfBuildingCommunity:devfrom
mcagnion:bugfix/multiline-implicit-count

Conversation

@mcagnion

Copy link
Copy Markdown
Contributor

Description of the problem being solved:

Importing an item with an enchantment or implicit split across two lines can move the following explicit modifier into the implicit section. The importer counts both text lines, but the item parser can combine them into one modifier without adjusting that count.

Preserve the section boundary while combining imported lines, then save the item with the combined modifier count so reloading or cloning it keeps the same sections. Descriptions containing independent effects retain those effects separately.

Steps taken to verify a working solution:

  • Regression coverage exercises character-item import, save/load, reimport and reconstruction from saved item text.
  • Parser coverage checks implicit, enchantment and scourge continuations, including a continuation that must not cross into the explicit section.
  • Replayed the same Doom Trail item in both versions using reconstructed API input. Its +12% suppression suffix stays below the section separator with the fix. The displayed suppression total is unchanged. The original API response was unavailable.

Build showing the problem

The Doom Trail boots in Basedard's Ethereal Knives Trickster show three implicits instead of two. The extra line is the +12% chance to Suppress Spell Damage suffix. Build code for PoB · Gear preview on PoB Archives

Before screenshot:

Following explicit modifier absorbed into the implicit section

After screenshot:

Wrapped implicit and following explicit retain their sections

Risks/notes

Existing saved exports keep their interpretation. Their implicit count can refer to either text lines or combined modifiers.

Importing an item whose implicit spans two lines can classify the following
explicit modifier as implicit. API imports count both raw text lines, but
the parser combines them into one entry without reducing the count.

Account for consumed implicit continuations and normalize the saved text
to its logical count so subsequent parses preserve modifier sections.
Keep the implicit continuation regression alongside the Viscera clipboard
regression. Preserve the original fix and the saved-item count convention.
@mcagnion
mcagnion marked this pull request as ready for review November 24, 2026 19:49
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