View stats for ephemeral / temporarily-existing cards (Souls, Sovereign Blade, etc.) #17

Closed
opened 2026-04-20 00:33:20 -07:00 by nelsong6 · 1 comment
nelsong6 commented 2026-04-20 00:33:20 -07:00 (Migrated from github.com)

Motivation

Some cards exist during a run but aren't permanent members of the deck. Examples:

  • Souls — Necrobinder class mechanic, cards that appear via a summon/collect flow
  • Sovereign Blade — Regent-related, generated via a specific mechanic
  • Various character-specific generated cards (Shivs-style in STS1 parlance)
  • Single-combat tokens / generated attack cards from mechanics like Cloak & Dagger

These cards CAN accumulate real stats (they get played, deal damage, gain block) but by the time the user opens a deck view or end-of-combat summary, they're gone — removed from play, despawned, or never deck-level to begin with.

Same UX gap as #12 (removed cards) but a different ingestion story:

  • #12 (removed cards): card WAS in the deck, user explicitly removed it
  • This issue (ephemeral cards): card was NEVER in the permanent deck, but the player watched it perform and wants to review it

Data story

Our tracking already captures these plays — GetOrAssignInstanceId lazy-assigns a number the first time we see the CardModel via CardPlayFinishedEntry or DamageReceivedEntry. The aggregate entry ends up in the run file keyed by e.g. CARD.SOUL#1, CARD.SOVEREIGN_BLADE#2. Then:

  • After combat ends, the CardModel ref is dropped from the game state
  • Aggregates remain in memory + on disk, but there's no UI to browse them
  • The CardModel ref in our _instanceNumbers dict becomes a dangling reference to a ghost card

Note: unlike removed cards, ephemeral cards might recur across combats (e.g., every combat generates fresh Souls). Should we:

  • Treat each combat's Souls as fresh instances (current behavior via lazy-assign, burns through the _defCounters counter)
  • Or pool same-def ephemeral instances together (like how SlayTheStats pools across instances)

UI requirements

  • Browse all cards ever seen this run (deck + removed + ephemeral), not just current deck
  • Distinguish the three states visually: in deck / removed / ephemeral
  • Optionally filter: "show me ephemeral cards only" / "group ephemeral cards by type"
  • For cards no longer in deck (either category): show final aggregates, last-seen floor/combat

Design notes

Natural place for this is a new screen/tab rather than shoehorning into the deck-view hover. Something like:

  • Deck view gets a "View all cards this run" toggle/button
  • That opens a scrollable list: current deck cards + removed cards + ephemeral cards
  • Each has its stat panel rendered like the current hover tooltip

Could reuse the existing stats rendering logic — just need a browse surface.

  • #12: View stats for removed cards (companion to this one; likely implemented together or with shared infrastructure)
  • #11: Pooled view across instances (relevant if we want to group same-def ephemeral cards)

Priority

Same as #12 — medium. Compelling but not blocking. Together they round out the "retrospective analysis" angle of the mod.

## Motivation Some cards exist during a run but aren't permanent members of the deck. Examples: - **Souls** — Necrobinder class mechanic, cards that appear via a summon/collect flow - **Sovereign Blade** — Regent-related, generated via a specific mechanic - Various character-specific generated cards (Shivs-style in STS1 parlance) - Single-combat tokens / generated attack cards from mechanics like Cloak & Dagger These cards CAN accumulate real stats (they get played, deal damage, gain block) but by the time the user opens a deck view or end-of-combat summary, they're gone — removed from play, despawned, or never deck-level to begin with. Same UX gap as #12 (removed cards) but a different ingestion story: - **#12 (removed cards)**: card WAS in the deck, user explicitly removed it - **This issue (ephemeral cards)**: card was NEVER in the permanent deck, but the player watched it perform and wants to review it ## Data story Our tracking already captures these plays — `GetOrAssignInstanceId` lazy-assigns a number the first time we see the CardModel via `CardPlayFinishedEntry` or `DamageReceivedEntry`. The aggregate entry ends up in the run file keyed by e.g. `CARD.SOUL#1`, `CARD.SOVEREIGN_BLADE#2`. Then: - After combat ends, the CardModel ref is dropped from the game state - Aggregates remain in memory + on disk, but there's no UI to browse them - The CardModel ref in our `_instanceNumbers` dict becomes a dangling reference to a ghost card Note: unlike removed cards, ephemeral cards might recur across combats (e.g., every combat generates fresh Souls). Should we: - Treat each combat's Souls as fresh instances (current behavior via lazy-assign, burns through the `_defCounters` counter) - Or pool same-def ephemeral instances together (like how SlayTheStats pools across instances) ## UI requirements - Browse all cards ever seen this run (deck + removed + ephemeral), not just current deck - Distinguish the three states visually: in deck / removed / ephemeral - Optionally filter: "show me ephemeral cards only" / "group ephemeral cards by type" - For cards no longer in deck (either category): show final aggregates, last-seen floor/combat ## Design notes Natural place for this is a new screen/tab rather than shoehorning into the deck-view hover. Something like: - Deck view gets a "View all cards this run" toggle/button - That opens a scrollable list: current deck cards + removed cards + ephemeral cards - Each has its stat panel rendered like the current hover tooltip Could reuse the existing stats rendering logic — just need a browse surface. ## Related - #12: View stats for removed cards (companion to this one; likely implemented together or with shared infrastructure) - #11: Pooled view across instances (relevant if we want to group same-def ephemeral cards) ## Priority Same as #12 — medium. Compelling but not blocking. Together they round out the "retrospective analysis" angle of the mod.
nelsong6 commented 2026-04-20 19:51:24 -07:00 (Migrated from github.com)

Closing this as resolved.

Confirmed in current behavior: ephemeral / temporarily-existing cards are now showing stats correctly on the relevant surfaces. Verified in game with Ascender''s Bane visible in the exhaust pile, including its tracked stats.

That is enough to mark the issue done.

Closing this as resolved. Confirmed in current behavior: ephemeral / temporarily-existing cards are now showing stats correctly on the relevant surfaces. Verified in game with Ascender''s Bane visible in the exhaust pile, including its tracked stats. That is enough to mark the issue done.
Sign in to join this conversation.
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#17
No description provided.