Pair Discovery's pick counters with the options it offered #330

Merged
nelsong6 merged 1 commit from claude/discovery-xy-format-d8000a into main 2026-09-09 22:46:10 -07:00
nelsong6 commented 2026-09-09 22:44:32 -07:00 (Migrated from github.com)

Discovery's pick counters had no denominator, so "rares picked 1" meant nothing on its own — one rare out of one offered is a very different card from one out of six.

Each bucket is now a single offered/picked row rather than the two rows the pair would otherwise cost. Same eight rows as before, seven more numbers.

row value
all cards offered/taken 15/5 ← compact view stops here
commons offered/taken 8/2
uncommons offered/taken 5/2
rares offered/taken 2/1
attacks offered/taken 6/2
skills offered/taken 7/2
powers offered/taken 2/1
avg discount of picked card 1.4

The total row carries the all symbol so it reads apart from the commons row, which shares the plain card symbol.

Attribution

The offered side is new. Discovery enters CardSelectCmd.FromChooseACardScreen synchronously from its own resolve, so the resolving-card guard that the existing SetToFreeThisTurn pick hook uses also identifies its screen at the command prefix — where the option list is still exactly what the player will choose from.

Toolbox, Hefty Tablet and Lead Paperweight patch the same command and stay unclaimed. No postfix is needed; the pick itself is already observed downstream.

Schema

New discovery_*_offered fields are additive, with a discovery-cards-offered-run.json fixture, SchemaLoadingTests assertions both ways, and a primer note.

Verification

Rebased onto current main. 2141 passed, 0 failed — the originating session left its new DiscoveryStatsTests assertions unexecuted, so this is their first run.

No restart needed: CardSelectCmd.FromChooseACardScreen was already Harmony-detoured by three existing patch classes, so live callers already route through the detour and a fourth patch takes effect immediately.

Live in-game verification not run.

🤖 Generated with Claude Code

Discovery's pick counters had no denominator, so "rares picked 1" meant nothing on its own — one rare out of one offered is a very different card from one out of six. Each bucket is now a single `offered/picked` row rather than the two rows the pair would otherwise cost. Same eight rows as before, seven more numbers. | row | value | |---|---| | all cards offered/taken | `15/5` ← compact view stops here | | commons offered/taken | `8/2` | | uncommons offered/taken | `5/2` | | rares offered/taken | `2/1` | | attacks offered/taken | `6/2` | | skills offered/taken | `7/2` | | powers offered/taken | `2/1` | | avg discount of picked card | `1.4` | The total row carries the `all` symbol so it reads apart from the commons row, which shares the plain card symbol. ## Attribution The offered side is new. Discovery enters `CardSelectCmd.FromChooseACardScreen` synchronously from its own resolve, so the resolving-card guard that the existing `SetToFreeThisTurn` pick hook uses also identifies its screen at the command prefix — where the option list is still exactly what the player will choose from. Toolbox, Hefty Tablet and Lead Paperweight patch the same command and stay unclaimed. No postfix is needed; the pick itself is already observed downstream. ## Schema New `discovery_*_offered` fields are additive, with a `discovery-cards-offered-run.json` fixture, `SchemaLoadingTests` assertions both ways, and a primer note. ## Verification Rebased onto current `main`. **`2141 passed, 0 failed`** — the originating session left its new `DiscoveryStatsTests` assertions unexecuted, so this is their first run. No restart needed: `CardSelectCmd.FromChooseACardScreen` was already Harmony-detoured by three existing patch classes, so live callers already route through the detour and a fourth patch takes effect immediately. Live in-game verification not run. 🤖 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!330
No description provided.