Skip to content

Fix stat comparison for radius jewels (timeless, Thread of Hope, etc.)#9746

Draft
mcagnion wants to merge 1 commit intoPathOfBuildingCommunity:devfrom
mcagnion:feature/radius-jewel-stat-diff
Draft

Fix stat comparison for radius jewels (timeless, Thread of Hope, etc.)#9746
mcagnion wants to merge 1 commit intoPathOfBuildingCommunity:devfrom
mcagnion:feature/radius-jewel-stat-diff

Conversation

@mcagnion
Copy link
Copy Markdown
Contributor

@mcagnion mcagnion commented Apr 11, 2026

Description of the problem being solved:

The stat diff tooltip when removing equipped radius jewels (Timeless, Thread of Hope, Impossible Escape) was missing or incomplete:

  • Timeless jewels: removing one did not revert conquered nodes, so the stat diff showed no meaningful change
  • Thread of Hope / Impossible Escape: removing one did not account for nodes only reachable through the jewel or their transitive dependents

Steps taken to verify a working solution:

  • Busted tests (spec/System/TestRadiusJewelStatDiff_spec.lua):
    • Tooltip stat diff correctly reflects conquered node revert for Timeless jewels
    • Tooltip stat diff accounts for dependent nodes when removing a Thread of Hope
    • Impossible Escape parses and targets a keystone correctly
    • Impossible Escape removal removes dependent nodes from the comparison
    • Tooltip shows "Removing this item" comparison block for equipped Timeless
  • Manual testing in PoB: verified tooltip stat diffs for all three jewel types

Screenshots:

Timeless jewel (Lethal Pride) — before:
before-timeless

Timeless jewel (Lethal Pride) — after:
after-timeless

Impossible Escape — before:
before-ie

Impossible Escape — after:
after-ie

Thread of Hope — before:
before-toh

Thread of Hope — after:
after-toh

🤖 Generated with Claude Code

@mcagnion mcagnion marked this pull request as draft April 11, 2026 14:49
@mcagnion mcagnion force-pushed the feature/radius-jewel-stat-diff branch 3 times, most recently from 6770c61 to 372c10f Compare April 16, 2026 17:16
- Fix stat diff tooltip for removing equipped radius jewels: use
  jewelRadiusIndex instead of hardcoded radius, revert conquered nodes
  via removeNodes/addNodes override with hashOverrides support
- Fix stat diff for removing Thread of Hope / Impossible Escape: remove
  nodes only reachable through the jewel and their transitive dependents
- Add 9 tests covering radius jewel stat comparison

Ported onto upstream PathOfBuildingCommunity#9744 sort-based compareSlot loop: override logic
now lives inside getReplacedItemAndOutput() instead of the old inline
for loop.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@mcagnion mcagnion force-pushed the feature/radius-jewel-stat-diff branch from 372c10f to a090a49 Compare April 16, 2026 22:12
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