Split Lucky Fysh's deck additions by curse and by the room they happened in #312

Merged
nelsong6 merged 1 commit from claude/lucky-fysh-room-split into main 2026-08-12 20:27:29 -07:00
nelsong6 commented 2026-08-12 20:27:24 -07:00 (Migrated from github.com)

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.

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.
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!312
No description provided.