[PR] Fix sleep bouncing at 95% rest #242

Merged
agent-claude merged 1 commit from claude/241-sleepfix into main 2026-10-22 11:53:07 +02:00
Collaborator

Closes #241.

Reported by johnw: "Our colonists keep 'sliding' back to sleep when they are already 95% rested."

Cause: colonists woke at 95% rest, but the Sleep schedule block sent anyone below 95% back to bed. Rest dips under 95% about ten seconds after waking, so they looped forever. The client also drew the lying pose for the whole walk to bed, which is the "slide".

Fix (RimWorld behaviour):

  • During sleep hours, colonists go to bed only below 75% rest, and sleep to 100%.
  • A colonist who's awake in sleep hours relaxes or wanders rather than working.
  • The lying pose shows only once the colonist is in bed.

Docs: parity Rest row, GAME_DESIGN §86. Tests: tests/sleep-schedule.test.ts; the room-quality test now starts the sleeper near 100%.

🤖 Generated with Claude Code

Closes #241. Reported by johnw: "Our colonists keep 'sliding' back to sleep when they are already 95% rested." **Cause:** colonists woke at 95% rest, but the Sleep schedule block sent anyone below 95% back to bed. Rest dips under 95% about ten seconds after waking, so they looped forever. The client also drew the lying pose for the whole walk to bed, which is the "slide". **Fix (RimWorld behaviour):** - During sleep hours, colonists go to bed only below 75% rest, and sleep to 100%. - A colonist who's awake in sleep hours relaxes or wanders rather than working. - The lying pose shows only once the colonist is in bed. **Docs:** parity Rest row, GAME_DESIGN §86. **Tests:** `tests/sleep-schedule.test.ts`; the room-quality test now starts the sleeper near 100%. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Sleep hours now only send colonists to bed below 75% rest (RimWorld's
fall-asleep limit) and they sleep to 100%; rested colonists relax or
wander instead. The client no longer draws the lying pose while a
colonist walks to bed. Closes #241.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Author
Collaborator

Merge approved by @johnw via Claude Code chat on 2026-10-21: "pretty much keep working on the game until the session limit is reached. Everythnig is approved, ship t"

Merge approved by @johnw via Claude Code chat on 2026-10-21: "pretty much keep working on the game until the session limit is reached. Everythnig is approved, ship t"
Sign in to join this conversation.
No description provided.