Pair every card-reward offer counter with what was taken #320

Merged
nelsong6 merged 1 commit from claude/prismatic-gem-offered-taken-8ff208 into main 2026-08-12 20:42:15 -07:00
nelsong6 commented 2026-08-12 20:42:05 -07:00 (Migrated from github.com)

Follow-up to #316. Eight relic tooltips spent two rows on numbers that only mean something together, and White Star spent none at all. Every offer bucket is now a single offered/taken row, via a shared OfferedTakenRow helper that the card-pool rows from #316 also route through.

Presentation only — relics that already tracked both sides

Relic Rows
Lasting Candy 9 → 3
Egg relics ×3 8 → 4 each
Choices Paradox 6 → 3
Prayer Wheel 6 → 3
Toolbox 4 → 2
Brilliant Scarf 2 → 1
Tiny Mailbox 2 → 1
Wing Charm 2 → 1

Lasting Candy's rejected rows are gone: RecordLastingCandyPowerOutcomeForTest increments rejected in the same call as offered and taken, so it is always exactly offered - taken. Wing Charm previously said taken and not-taken, which is the same pair with the total left implicit; it now states the total.

No schema change for any of these.

New attribution — White Star

Its resolver already diffed the remaining Rare count across selection, then collapsed that to a boolean "declined" and threw the number away. Replaced the scalar snapshot with PendingWhiteStarReward, bucketed by card type among Rares — mirroring PendingPrayerWheelReward, since White Star owns a whole extra CardReward and so needs no per-result identity.

All four of its rows now pair, and the declined counter stays derived from that same diff rather than a second, independently timed check that could disagree with the per-card counts.

rare_attack/skill/power_cards_taken are additive (rare_cards_taken already existed). Fixture white-star-rare-cards-taken-run.json plus a zero-taken assertion added to the pre-existing White Star fixture. Primer note covers White Star and Prayer Wheel's shared snapshot shape.

Still asymmetric, deliberately

Tiny Mailbox and Wing Charm pair their totals but keep offered-only per-rarity splits — the taken side is not tracked per rarity, and inventing it was out of scope. Fresnel Lens likewise still shows taken with no offered card count.

Tests were not run and no live behavioral verification was done, per the repo's user-owned verification rule. Assertions across nine test files were rewritten to match the new row text and x/y values; they compile. Built, deployed, and hot-reloaded cleanly (Patch install: 428 classes patched, 0 failed/skipped); no Harmony surface changed, so no restart is needed.

Follow-up to #316. Eight relic tooltips spent two rows on numbers that only mean something together, and White Star spent none at all. Every offer bucket is now a single `offered/taken` row, via a shared `OfferedTakenRow` helper that the card-pool rows from #316 also route through. ## Presentation only — relics that already tracked both sides | Relic | Rows | |---|---| | Lasting Candy | 9 → 3 | | Egg relics ×3 | 8 → 4 each | | Choices Paradox | 6 → 3 | | Prayer Wheel | 6 → 3 | | Toolbox | 4 → 2 | | Brilliant Scarf | 2 → 1 | | Tiny Mailbox | 2 → 1 | | Wing Charm | 2 → 1 | Lasting Candy's `rejected` rows are gone: `RecordLastingCandyPowerOutcomeForTest` increments rejected in the same call as offered and taken, so it is always exactly `offered - taken`. Wing Charm previously said taken and not-taken, which is the same pair with the total left implicit; it now states the total. No schema change for any of these. ## New attribution — White Star Its resolver already diffed the remaining Rare count across selection, then collapsed that to a boolean "declined" and threw the number away. Replaced the scalar snapshot with `PendingWhiteStarReward`, bucketed by card type among Rares — mirroring `PendingPrayerWheelReward`, since White Star owns a whole extra `CardReward` and so needs no per-result identity. All four of its rows now pair, and the declined counter stays derived from that same diff rather than a second, independently timed check that could disagree with the per-card counts. `rare_attack/skill/power_cards_taken` are additive (`rare_cards_taken` already existed). Fixture `white-star-rare-cards-taken-run.json` plus a zero-taken assertion added to the pre-existing White Star fixture. Primer note covers White Star and Prayer Wheel's shared snapshot shape. ## Still asymmetric, deliberately Tiny Mailbox and Wing Charm pair their totals but keep offered-only per-rarity splits — the taken side is not tracked per rarity, and inventing it was out of scope. Fresnel Lens likewise still shows taken with no offered card count. Tests were not run and no live behavioral verification was done, per the repo's user-owned verification rule. Assertions across nine test files were rewritten to match the new row text and `x/y` values; they compile. Built, deployed, and hot-reloaded cleanly (`Patch install: 428 classes patched, 0 failed/skipped`); no Harmony surface changed, so no restart is needed.
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!320
No description provided.