Report card-pool offers as an observed offered/taken pair #316
No reviewers
Labels
No labels
4-29
bug
documentation
duplicate
enhancement
flow improvement
good first issue
help wanted
invalid
investigating
issue-agent
issue-agent-blocked
issue-agent-complete
issue-agent-pr-open
issue-agent-runner-nelsonlaptop
issue-agent-runner-nelsonpc
issue-agent-runner-nelsonpc-user
issue-agent-running
needs-verification
next to do
question
queue
recon
relics-stats-onboarding
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
romaine-life/spirelens!316
Loading…
Reference in a new issue
No description provided.
Delete branch "claude/card-pool-offered-taken-8ff208"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Prismatic Gem and Dingy Rug showed only how many options each card pool contributed to rewards, which says nothing about what the player did with them. Each pool is now one row whose value is
offered/taken.Offered side — unchanged
Still
Hook.TryModifyCardRewardOptions, still deliberately meta: it counts the final visible options of every reward generated while the relic is held, and another modifier may have contributed the same option.Taken side — new
Reuses the
CardReward._cardsremoval truth already used by Wing Charm and Lasting Candy: snapshot the visible options with their pool when the selection opens, and treat a result missing at terminal resolution as taken. That counts cards that reached the deck, not cards clicked. Reroll resolves before_cardsis cleared, then re-snapshots.Both relics observe the whole option list rather than one tagged option, so a player holding both is credited on both.
Notes
card_reward_category_aggregate.takenis additive. Pools written before it read as zero taken, not zero offers.card-reward-pool-taken-run.jsonplus schema-loading assertions on the new field and on the zero default for the two pre-existing fixtures.Tests were not run and no live behavioral verification was done, per the repo's user-owned verification rule. Built, deployed, and hot-reloaded cleanly (
Patch install: 428 classes patched, 0 failed/skipped); no Harmony surface changed, so no restart is needed.