// Management · RimWorld Mod
闭目养神 / Restful Downtime
This mod adds a timetable-controlled extra rest system for regular pawns and pawns with Never Sleep.
This mod adds a timetable-controlled extra rest system for regular pawns and pawns with Never Sleep. It also fixes the issue where pawns with Never Sleep may never go to bed for lovin'.
Features
- During sleep schedule hours, regular pawns will not get up immediately after their Rest need is full. Instead, they enter a restful downtime phase.
- Pawns with Never Sleep will lie down and rest quietly during sleep schedule hours.
- Pawns gain mood benefits based on how much extra rest they get.
- Separate toggles for regular pawn extra rest and Never Sleep pawn rest.
- Option to enable or disable mood benefits.
- Option to allow high-priority work, priority 1, to interrupt extra rest.
- Configurable work type whitelist.
How to Use
Set pawns to Sleep in their timetable as usual.
During scheduled sleep hours, regular pawns will continue resting after their Rest need is full instead of getting up immediately. Pawns with Never Sleep will also go to bed and lie down during scheduled sleep hours.
Mood Stages
- Stage 0: +2 mood, requires about 1 hour of extra rest, lasts 6 hours after getting up.
- Stage 1: +4 mood, requires about 3 hours of extra rest, lasts 8 hours after getting up.
- Stage 2: +10 mood, requires about 7 hours of extra rest, lasts 12 hours after getting up.
Scope
This mod only affects:
- Pawns during scheduled sleep hours.
- Humanlike pawns of the player faction.
- Pawns with Never Sleep, or regular pawns after their Rest need is full and they enter restful downtime.
Compatibility
Requires Harmony.
This mod does not add buildings, items, factions, research projects, or world components. It mainly works through a hidden hediff and mood thought checks. In theory, it can be added to an existing save.
If you want to remove this mod from an existing save, it is recommended to first wait until all restful downtime mood thoughts have expired naturally, then save and remove the mod. This helps avoid leaving hidden mod states in the save.
Plans
Add more mod options.
Languages
Simplified Chinese, Traditional Chinese, English.
Credits
Idea and mod preview image: Me
Programming: ChatGPT Codex
Version
v1.0.0
Initial release.
v1.1 Changelog
Added:
- Added a work type whitelist setting.
- Whitelisted work can interrupt extra rest based on the pawn's work priority range.
- The default whitelist includes Firefight, Doctor, and Bed Rest.
Fixes:
- Fixed bed selection compatibility with mods such as One bed to sleep with all - Polycule Edition. Pawns now use the vanilla bed-finding logic.
- Improved medical rest handling. Injured pawns or pawns who need treatment are handed over to vanilla medical AI.
- Fixed some cases where regular pawns would not go to sleep, or would lie in bed without sleeping.
Compatibility:
- This update is safe to use with existing saves.
- This mod still does not add buildings, items, factions, research projects, or world components.
本模组提供了一种由休息日程控制的额外休息/不眠者休息的机制(解决了不眠者不会滚床单的问题)
功能特点
- 休息日程内,普通小人在休息条满后不会立即起床,而是进入闭目养神阶段
- 不眠者会在休息日程中躺床静息
- 根据额外休息时间获得心情增益
- 可自由选择普通小人与不眠小人相关功能的开关
- 可设置是否启用心情增益
- 可设置高优先级工作(优先级为1)是否打断额外休息
- 可设置的工作白名单系统
使用方法
小人在休息日程内会进行额外休息(需求条满后不会起床),不眠者在休息日程内也会上床睡觉。
心情阶段
- 阶段 0:+2心情,额外休息约 1 小时,起床后持续 6 小时
- 阶段 1:+4心情,额外休息约 3 小时,起床后持续 8 小时
- 阶段 2:+10心情,额外休息约 7 小时,起床后持续 12 小时
作用范围
本模组只影响:
- 睡眠日程内的小人
- 玩家阵营的人类小人
- 不眠者,或普通小人休息已满后的闭目养神阶段
兼容性
需要 Harmony。
本模组没有新增建筑、物品、派系、研究或世界组件,主要通过隐藏状态和心情判定工作。理论上可以中途加入存档。
如果想从已有存档中移除本模组,建议先等待所有闭目养神相关心情自然消失,再保存并移除,以避免存档中残留隐藏状态。
计划
加入更多可设置选项
语言
简体中文,繁体中文,英语
制作人员
创意,mod封面:我
编程:ChatGPT Codex
版本
v1.0.0
首个发布版本。
v1.1 更新日志
新增:
- 新增工作类型白名单设置。
- 白名单工作可按小人的工作优先级范围打断额外休息。
- 默认白名单包含:灭火、医生、修养。
修复:
- 修复与 One bed to sleep with all - Polycule Edition 等模组的床位选择兼容问题,现在小人会按照原版逻辑找床。
- 改善医疗休息处理,受伤或需要治疗的小人会交给原版医疗 AI 接管。
- 修复部分情况下普通小人不去睡觉或躺床不睡觉的问题。
兼容性:
- 本次更新可安全用于已有存档。
- 本模组仍不添加建筑、物品、派系、研究或世界组件。