Split Lucky Fysh's deck additions by curse and by the room they happened in #312
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!312
Loading…
Reference in a new issue
No description provided.
Delete branch "claude/lucky-fysh-room-split"
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?
Lucky Fysh charged you for every permanent-deck addition but the tooltip only
reported the total and the gold, which says nothing about what the relic is
actually being paid for. A run where six of the additions were curses reads
identically to one where none were, and a total alone cannot answer whether the
deck is growing from combat rewards, purchases, events, or rest sites.
The card's CardType and the owner's CurrentRoom are read in the prefix, before
the awaited gold command. Both have to be: the card type is what makes a curse
countable, and the awaited command can resolve after a room transition, so
reading CurrentRoom in the continuation would file the addition under whichever
room the player walked into next. Combat covers Monster, Elite, and Boss,
because card rewards resolve while the player still stands in the combat room.
Averages need denominators the relic actually lived through, not run totals, so
the resolved Hook.AfterRoomEntered prefix counts rooms of each type while Lucky
Fysh is held. That hook sees the resolved room, so a ? node lands in whatever it
became. It cannot see the room the player was already standing in when the relic
arrived, which would leave an addition divided by zero rooms, so the addition
path counts its own room too; a once-per-floor marker per room type keeps the
two paths from double-counting and keeps Continue and Core reloads idempotent.
A room type not yet entered while held reports "not yet" rather than 0, which a
player would otherwise read as a measured result.