Repository navigation
Don't advance the clock on the turn that ends the run - #269
Conversation
Quitting or retiring ran the hourly tick, so each load-then-quit cost an in-game hour and a day rolled at 07:00 was saved with its report on a prompt never shown again. Skip the tick once running is cleared. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Self-review rubric (CI green on head:
This review was drafted during a Gardener session (https://github.com/Stephenson-Software/gardener). drafted by Claude on behalf of Daniel Stephenson |
Summary
_runGameLoopno longer callstimeService.increaseTime()on the iteration whose location returnedLocationType.NONE(quitting from Home or the Docks, or retiring). Leaving the game is no longer counted as an hour spent, and a day can no longer roll over on that turn, so its news is no longer saved on a prompt that is never shown again.test_play_appends_eviction_message,test_play_appends_the_overnight_fleet_report,test_play_appends_the_fleet_report_and_the_eviction_together) now run one ordinary turn before quitting, as the issue's test note suggested.Closes #267
Test plan
test_play_does_not_advance_the_clock_on_quitting,test_play_does_not_drop_a_day_report_on_quittingandtest_play_ticks_every_turn_before_the_one_that_ends_the_runwere confirmed to fail with thesrc/fishE.pychange stashed (3 failed) and to pass with it restored.black --checkpasses on both changed files.Skipped issues
schemas/*.jsonand a*JsonReaderWriter, which are do-not-auto-merge paths, so it needs a human merge decision.No protected paths are modified by this PR.
This PR description was drafted during a Gardener session (https://github.com/Stephenson-Software/gardener).
🤖 Generated with Claude Code
drafted by Claude on behalf of Daniel Stephenson