RimWorld

RimWorld

333 ratings
Smart Meditation
2
   
Award
Favorite
Favorited
Unfavorite
Mod, 1.3, 1.4, 1.5, 1.6
File Size
Posted
Updated
759.578 KB
27 Apr, 2022 @ 9:03pm
15 Jul @ 1:45pm
7 Change Notes ( view )

Subscribe to download
Smart Meditation

Description
Colonists are now smart about when to meditate. It helps both psyfocus gain and recreation.



Background
In Rimworld a colonist with psylink will attempt to meditate when the psyfocus is less than the target value.
On the other hand, the colonist does not favor meditation against other solitary joy activity, even if they do need more psyfocus.

This resulted in a bad deadlock: the colonist keeps meditating when they are bored about meditation, and further push tolerance of solitary joy up.
When the tolerance is high, the meditation activity gains very little recreation needs, effectively killed a type of recreation.

I found it very annoying to see my colonist 90%+ bored at solitary activity yet still need to meditate.

This Mod Adds
Smart meditation behaviors.
  • Colonist with psylink now are more likely to do meditation over other solitary joy activities (the chance factor can be configured).
  • Colonist, should they become bored at solitary, will not rush to meditation. They will instead wait a little longer until the tolerance of solitary dropped before meditate again.

F.A.Q
Does this mod affect performance?
No

Is this mod safe to add/remove mid save?
Yes

But I want my colonist to keep psyfocus level high?
You can still do that, in a number of ways:
  • Set the target focus level slightly higher
  • Set the target focus level at max (and this mod will no longer try to stop meditation in any cases).
  • Set meditation schedule. This mod does not stop meditation if it's scheduled.

Updates
v0.3.1 Fixed an edge bug: when a child has a psylink, this mod would throw exception due to no joy needs.
v0.3.0 Now supports 1.5.
v0.2.1 Now uses the average of Current Tolerance and Potential Tolerance Gain for the purpose of "Treat tolerance as focus". This now allows your high focus target pawn to meditate more when their recreation needs are already satisfied.

v0.3.0 Now supports 1.6.
v0.2.0 Now supports 1.4.
v0.1.1 Adjusted Mod Settings UI. Slightly changed wording in English to make it less confusing.

Credits & Links
Many thanks to the members of the #mod-development channel on the Rimworld Discord server!

If you enjoy this mod, please check out my other Rimworld mods on Steam Workshop!
58 Comments
Felnel 15 Jul @ 2:21pm 
Coool, Thanks !!
pureMJ  [author] 15 Jul @ 1:46pm 
Updated to 1.6
Scionin 15 Jul @ 12:21pm 
1.6?
Felnel 14 Jul @ 7:17am 
1.6?
Turu D. Sleep 14 Jul @ 1:35am 
1.6 update?
Flesh Forge 31 May @ 2:56pm 
Was looking for something like this to fix that deadlock of colonists just meditating forever despite being 100% focus, thanks for this!
pureMJ  [author] 1 May @ 4:13pm 
@Warith_Magus
You can simply set the "chance factor" to 99 so it's 1% doing other types of solitary relaxation, effectively the same as banning them.

This mod does not just ban it because many people also prefer some variety of things their pawns can do.
Wraith_Magus 1 May @ 3:15pm 
I only set it up to 100% when I still saw my pawn preferring to do other solitary relaxation in spite of the mod even while psyfocus dropped to below 20% while set to a target of 50%, 62%, and higher. I didn't realize this mod had an options setting before now, though, and I'm surprised to see that it's even an option where you merely increase a probability to have non-meditation solitary relaxation. I thought banning all other solitary relaxation so that it isn't constantly at 90% boredom was the point? The only thing this mod did was make my pawn not meditate when she should have while wasting even more time on recreation she was going to gain from meditation anyway.
pureMJ  [author] 1 May @ 3:01pm 
@Wraith_Magus
When you set your character at target of 100% psyfocus it will ignore this mod. The problem you described is not related to the mod, but vanilla game.

If you want this mod to help you EVEN when you set the target focus at MAX, you can adjust the mod settings (uncheck "Do not treat tolerance as focus when Focus Target is set at Max")
Wraith_Magus 1 May @ 2:28pm 
I'm having a lot of trouble getting this mod to work as intended, and it's actively making the problem it's trying to solve worse. My psycaster character (artistic focus) now refuses to ever meditate unless she's at 100% recreation already. She will even go perform other solitary relaxation while bored of solitary relaxation before she will meditate, guaranteeing that solitary recreation is at 90% boredom at all times. This happens even when she's at 20% or so psyfocus and I set her to a target of 100% psyfocus. I can't force her to meditate unless I manually change her schedule to meditation. (Which I could do without this mod...)