Skip to content

Quanah: fix equipped-tooltip scans; add orbs, preferred, worn and disabled pieces - #11

Merged
ejpham merged 1 commit into
mainfrom
fix/quanah-occluded-label
Nov 27, 2026
Merged

ejpham merged 1 commit into
mainfrom
fix/quanah-occluded-label

Conversation

@ejpham

@ejpham ejpham commented Nov 27, 2026

Copy link
Copy Markdown
Collaborator

Scanner fix

Hovering an inventory item sometimes scanned the equipped item instead. When the inventory sits right of the tooltips, the game draws the comparison tooltip under the cursor. If the cursor covered its "Currently Equipped" label, neither tooltip looked equipped, and the fallback picked the one nearest the cursor, which is the equipped one.

  • The label is now also matched in 4 pieces; 2 visible pieces are enough (checked at 117 cursor positions on a real fixture).
  • Two unlabelled tooltips are never guessed between by cursor distance; the scanner waits for the next frame.

Best set

  • Pieces for another class count: their lines can be orbed onto your own piece of the slot. They're tagged with their class.
  • Wearing toggle (one per slot): using any other piece in that slot costs an orb, on- or off-class. Unmarked slots: only off-class pieces cost one. Picks needing an orb are tagged, and Best set shows "N orbs needed: …". Among equally good sets, the one needing the fewest orbs wins.
  • Preferred star (one per slot): locks the piece into its slot; the rest of the set is solved around it.
  • Disable toggle: leaves a piece out of every combo while keeping it listed. Disabling a starred piece unstars it.
  • Combo arrows: a complete set with several winning combos can step through them (fewest orbs first, up to 100); Your pieces highlights the combo on show.
  • One-drop hints note "+ 1 orb" for slots where you wear a piece.
  • GanDi is renamed to Hybrid; saved gandi settings are read back as hybrid.

Page

  • Edit and Delete moved into a per-piece "…" menu, and the Scanned/Manual label is gone, so rows no longer wrap at the default window width.

Notes

  • The solver now keeps the routes between states so it can list combos; a solve takes about 0.7–1.5 s on 100–150 random pieces (about 0.5–0.8 s before).
  • Still open: the equipped item can be scanned if the cursor covers the hovered tooltip's Required Level label.

Testing

  • pytest: 828 passed. node --test tests/js: 51 passed.
  • ruff was not run locally (not installed); CI runs ruff check.
  • Not exercised end-to-end in the app with a real scan.

🤖 Generated with Claude Code

…abled pieces

Scanner: an inventory hover could read the equipped item when the cursor
covered the comparison tooltip's "Currently Equipped" label. The label is now
also matched in pieces, and two unlabelled tooltips are no longer guessed
between by cursor distance (the cursor usually rests on the comparison).

Solver and page:
- Pieces for another class count toward the best set; their lines are orbed
  onto your own piece of the slot. Sets needing fewer orbs win ties.
- Mark a piece Preferred to lock it into its slot, Wearing to count an orb for
  using any other piece there, or Disabled to leave it out of every combo.
- Complete sets with several winning combos get arrows to step through them,
  fewest orbs first, with the shown combo highlighted in Your pieces.
- Best set shows the orbs needed; one-drop hints note an orb for worn slots.
- GanDi build renamed to Hybrid (saved settings migrate).
- Edit and Delete move into a per-piece menu; the Scanned/Manual label is gone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ejpham
ejpham merged commit d70863f into main Nov 27, 2026
1 check passed
@ejpham ejpham mentioned this pull request 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