Split the exhausted-others count into curses and status cards #328

Merged
nelsong6 merged 1 commit from claude/exhausted-others-stat-display-6063c9 into main 2026-09-09 22:18:08 -07:00
nelsong6 commented 2026-09-09 22:16:31 -07:00 (Migrated from github.com)

TimesExhaustedOtherCards told you a card exhausted eleven others, but not what they were — and for exhaust payoffs the interesting question is almost always whether it ate Curses and Statuses or real cards.

Change

  • RunData.cs — adds TimesExhaustedOtherCurses and TimesExhaustedOtherStatusCards. Additive, snake_case on disk, so old run files load unchanged.
  • RunTracker.cs — RecordCardExhausted classifies the exhausted card at the same point it attributes the exhaust to the causing play. These are subsets, not extra events: the total still counts each exhaust exactly once, and self-exhaust stays excluded.
  • MergeAggregateInto — both fields registered, so pooling and cloning carry them (AggregateDriftTests covers the parallel-list risk automatically).
  • CardHoverTooltipPatch.cs — full view only, as sub-rows of which curses / of which status cards, each rendered only when non-zero. The compact hand view is untouched.

Schema

New fixture Fixtures/RunSchema/exhausted-other-card-types-run.json with a README entry, plus three SchemaLoadingTests cases: historical load, resumable load, and a missing-field default asserted against the v4 fixture.

Also ExhaustedOtherCardTypesTooltipTests covering both-shown, one-omitted, and whole-block-omitted.

Verification

Rebased onto current main. 2134 passed, 0 failed — the six new tests included.

No restart needed: no new Harmony target, and every caller of the changed code lives inside the hot-swapped Core assembly.

Live in-game verification not run, per the repo's user-owned verification policy.

🤖 Generated with Claude Code

`TimesExhaustedOtherCards` told you a card exhausted eleven others, but not what they were — and for exhaust payoffs the interesting question is almost always whether it ate Curses and Statuses or real cards. ## Change - **[RunData.cs](Core/RunData.cs)** — adds `TimesExhaustedOtherCurses` and `TimesExhaustedOtherStatusCards`. Additive, snake_case on disk, so old run files load unchanged. - **[RunTracker.cs](Core/RunTracker.cs)** — `RecordCardExhausted` classifies the *exhausted* card at the same point it attributes the exhaust to the causing play. These are **subsets, not extra events**: the total still counts each exhaust exactly once, and self-exhaust stays excluded. - **MergeAggregateInto** — both fields registered, so pooling and cloning carry them (`AggregateDriftTests` covers the parallel-list risk automatically). - **[CardHoverTooltipPatch.cs](Core/Patches/CardHoverTooltipPatch.cs)** — full view only, as sub-rows `of which curses` / `of which status cards`, each rendered only when non-zero. The compact hand view is untouched. ## Schema New fixture `Fixtures/RunSchema/exhausted-other-card-types-run.json` with a README entry, plus three `SchemaLoadingTests` cases: historical load, resumable load, and a missing-field default asserted against the v4 fixture. Also `ExhaustedOtherCardTypesTooltipTests` covering both-shown, one-omitted, and whole-block-omitted. ## Verification Rebased onto current `main`. `2134 passed, 0 failed` — the six new tests included. No restart needed: no new Harmony target, and every caller of the changed code lives inside the hot-swapped Core assembly. Live in-game verification not run, per the repo's user-owned verification policy. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
romaine-life/spirelens!328
No description provided.