Block attribution heuristic #1

Closed
opened 2026-04-19 16:26:29 -07:00 by nelsong6 · 1 comment
nelsong6 commented 2026-04-19 16:26:29 -07:00 (Migrated from github.com)

Problem

When the player has block from multiple cards (e.g., 5 from Defend_A + 10 from Shrug It Off) and takes incoming damage, the game sees one undifferentiated block pool. For per-card attribution we must pick a heuristic to credit specific block cards with the absorbed damage.

Options

  • Proportional — each card gets credit proportional to contribution. 15 block, 3 absorbed → Defend gets 1, Shrug It Off gets 2. Feels fair, loses ordering signal.
  • FIFO — first block played absorbs first. Rewards front-loading. Weird if card played second is "the big one."
  • LIFO — most recent block played absorbs first. Arbitrary.
  • Weighted by effective block — only the portion that actually absorbed damage counts toward any card's stats. Still needs ordering within that.

What we actually want

Answer the question: "was Shrug It Off earning its spot in my deck?" — if the player had enough block without it, did any actually absorb damage?

Likely pick (tentative)

Proportional, because it's defensible and doesn't bias on play order (which is often arbitrary — people play block cards when convenient, not in a meaningful sequence).

Blocking

Milestone 2 (block attribution). Non-blocking for M1 (attacks).

## Problem When the player has block from multiple cards (e.g., 5 from Defend_A + 10 from Shrug It Off) and takes incoming damage, the game sees one undifferentiated block pool. For per-card attribution we must pick a heuristic to credit specific block cards with the absorbed damage. ## Options - **Proportional** — each card gets credit proportional to contribution. 15 block, 3 absorbed → Defend gets 1, Shrug It Off gets 2. Feels fair, loses ordering signal. - **FIFO** — first block played absorbs first. Rewards front-loading. Weird if card played second is "the big one." - **LIFO** — most recent block played absorbs first. Arbitrary. - **Weighted by effective block** — only the portion that actually absorbed damage counts toward any card's stats. Still needs ordering within that. ## What we actually want Answer the question: "was Shrug It Off earning its spot in my deck?" — if the player had enough block without it, did any actually absorb damage? ## Likely pick (tentative) Proportional, because it's defensible and doesn't bias on play order (which is often arbitrary — people play block cards when convenient, not in a meaningful sequence). ## Blocking Milestone 2 (block attribution). Non-blocking for M1 (attacks).
nelsong6 commented 2026-04-20 20:36:46 -07:00 (Migrated from github.com)

Consolidating block-attribution tracking into #6 as of April 20, 2026 so the heuristic decision and implementation work live in one place. Closing this as a duplicate/superseded issue.

Consolidating block-attribution tracking into #6 as of April 20, 2026 so the heuristic decision and implementation work live in one place. Closing this as a duplicate/superseded issue.
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#1
No description provided.