Rewind the run record when Continue replays a room #335
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!335
Loading…
Reference in a new issue
No description provided.
Delete branch "codex/rewind-record-on-continue"
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?
Problem
A Save and Quit mid-shop/event followed by main-menu Continue replays the room from
current_run.save, butOnRunStartedonly adopted the existing record. Gold spent, cards bought and relics taken during the abandoned visit stayed committed and were banked again on the replay. The replayedAfterRoomEnteredthen overwrote RoomResetter's snapshot with the inflated record.Fix
RunSaveSnapshotPatchprefixesRunSaveManager.SaveRun(AbstractRoom)(same synchronous segment asRunManager.ToSave, same write condition). Nothing the game replays after the save — room creation, entry hooks, the visit — is in the snapshot. Replaces theAfterRoomEnteredcapture and subsumesAncientEventRewindSnapshotPatch.CombatEnded's promotion, with no snapshot in the gap.user://SpireLens/run-save-snapshot/with the tag; untaggedroom-entry/files are ignored.The suspected double-count of an Ancient's arrival heal doesn't happen: out of combat
CreatureCmd.Healnever raisesAfterCurrentHpChanged, so the heal isn't recorded at all.Validation
Core and test projects build; deployed and hot-reloaded (
HOT RELOAD DONE,Core.Initialize complete, 437 patch classes, 0 failed;RunSaveManager.SaveRunlisted as patched). Tests and live behavioral verification not run.