Skip to content

Add Zygor Guides item score integration#176

Open
dlamanna wants to merge 2 commits intoPeterodox:mainfrom
dlamanna:feature/zygor-integration
Open

Add Zygor Guides item score integration#176
dlamanna wants to merge 2 commits intoPeterodox:mainfrom
dlamanna:feature/zygor-integration

Conversation

@dlamanna
Copy link

@dlamanna dlamanna commented Mar 7, 2026

Summary

  • Adds a new SupportedAddOns/Zygor.lua integration following the existing Pawn.lua pattern
  • Overrides API.IsItemAnUpgrade_External to use Zygor's stat-weight scoring instead of simple ilvl comparison
  • Adds SharedTooltip:ProcessItemExternal to display Zygor ItemScore upgrade/downgrade percentages in DialogueUI's custom tooltip
  • Handles dual-slot items (slot 1 / slot 2), "future" valid items, spec display, and edge cases (trinkets, unscored items)

Details

When Zygor Guides is installed and has an active rule set, quest reward items in DialogueUI will show:

  • Green upgrade percentage (e.g., "Upgrade: +12.5%") for items that improve your score
  • Red downgrade percentage (e.g., "Downgrade: -8.3%") for items that lower your score
  • Gray "No change" / "Equipped" labels as appropriate
  • Spec name in the tooltip header (e.g., "Zygor ItemScore (Beast Mastery):")

Falls back to the built-in API.IsItemAnUpgrade when Zygor has no active rule set.

Files Changed

  • Code/SupportedAddOns/Zygor.lua — new file
  • Code/SupportedAddOns/SupportedAddOns.xml — added <Script file="Zygor.lua"/>

Test Plan

  • Install with Zygor Guides active — verify tooltip shows score percentages on quest reward items
  • Verify upgrade arrow appears only for true stat-weight upgrades, not just higher ilvl
  • Test without Zygor installed — verify no errors and standard upgrade detection works
  • Test with Zygor installed but no active rule set — verify fallback to built-in detection

🤖 Generated with Claude Code

dlamanna and others added 2 commits March 6, 2026 22:37
Adds a SupportedAddOn integration for ZygorGuidesViewer that overrides
DialogueUI's upgrade detection and tooltip display with Zygor's
stat-weight-based item scoring system.

- Override IsItemAnUpgrade_External to use Zygor's Upgrades:IsUpgrade()
  for more accurate upgrade arrows on quest reward items
- Override ProcessItemExternal on SharedTooltip to show Zygor ItemScore
  upgrade/downgrade percentages per equipment slot
- Handle deferred item data by signaling "not ready" so DialogueUI retries
- Follow the same AddSupportedAddOn pattern used by Pawn integration

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Zygor does not score trinkets, so they previously showed no upgrade
arrow and a gray "not part of scoring system" tooltip message. Now
when Zygor returns "not scored" for a trinket, we fall back to
item-level comparison against both equipped trinket slots.

- Upgrade arrow: delegates to built-in API.IsItemAnUpgrade for trinkets
- Tooltip: shows per-slot ilvl deltas (Trinket 1/2) with color-coded
  upgrade/downgrade/no-change lines and empty-slot handling
- Fails soft if ilvl data isn't available yet

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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