RimWorld

RimWorld

27 ratings
Sleep Meditation Focus
   
Award
Favorite
Favorited
Unfavorite
Mod, 1.5, 1.6
File Size
Posted
Updated
709.588 KB
29 Mar @ 11:06am
6 Jul @ 4:54pm
6 Change Notes ( view )
You need DLC to use this item.

Subscribe to download
Sleep Meditation Focus

In 1 collection by Kimo'
Kimo's small(-ish) tweaks mods
15 items
Description
What does this mod do?

Inspired by the Sleep meditation mod, I wanted to make it so only some pawns would be able to regain focus by sleeping.
This mod add a Sleeping meditation focus, that can either be purchased for a psy level like almost any other focus, or be naturally unlocked if the pawn have certain genes or traits.
Sleeping focus is naturally unlocked when the pawn gain psy powers if:
-They have either the "Sleepy" or "Very sleepy" genes.
-They have the "Slothful" trait from vanilla.
-They have the "Heavy sleeper" (from Vanilla Traits Expended)

A pawn with the Sleeping meditiation focus will gradually recover psyfocus by sleeping.
The better the quality of the bed, the faster the pawn will regain psy focus.

Quality
% of psyfocus recovered in a full 10h night
Awful
5%
Poor
20%
Normal
35%
Good
50%
Excellent
80%
Masterwork
100%
Legendary
150%


If the pawn sleep in a bed without a quality modifier, the bed is considered to be normal quality.
If the pawn sleep on the ground or on the sleeping spot, they don't recover any psyfocus, unless you have the "Rough living: Welcomed" precept active in your ideology. In that case, sleeping on the ground or on a spot is considered the same as sleeping in a normal quality bed.
If the pawn sleep in a royal bed (or any bed made with gold) they will receive a 15% bonus multiplier to their psyfocus gains.
Just like any other focus, bonus and malus to psyfocus gain apply to sleep meditation.

Additionally, the Natural focus is now also unlocked by default with specific traits, and can be purchased like any other focus.
Natural meditation focus is naturally unlocked when the pawn gain psy powers if:
-The pawn have a tribal backstory (unchanged)
-The pawn have the "Nudist" trait from vanilla
-The pawn have the "Ecologist", "Stoner" or "Technophobe" traits (from Vanilla Traits Expended)

F.A.Q

Q: How balanced is that?
A: I think it is. Sleep meditation is naturally rare, and need you to invest in good beds to make the most out of it. If you think it's op, just don't purchase the focus for your caster and you'll be fine.

Q: CE compatible?
A: ¯\_(ツ)_/¯

Q: Is it compatible with insert x mod in particular ?
A: Not compatible with the OG Sleep meditation mod. Aside from that, it should pretty much be compatible with anything else.

Q: Can I add it mid playthrough?
A: You should, don't remove it mid playthrough though!

Q: I have a bug/suggestion!
A: Leave it in the comments below! With a log, if it's a bug!

Credits

Oskar Potocki and the Vanilla Expended team for providing the focus system used in this mod.
MIS42NE for the original mod that inspired me to design this one.
Eragon for the C# code and def XML
Me, for the design and XML patches



[ko-fi.com]
All donations goes toward comissioning more complex mods from talented modders
25 Comments
PKPenguin 12 hours ago 
Vanilla deathrest does count for this mod though which I actually prefer
Kimo'  [author] 19 Jul @ 4:50am 
@Ozymandias No it does not, there are already linkable that restore focus during deathrest included in VRE sanguophage
Ozymandias 16 Jul @ 3:08pm 
does deathresting count as sleep for this mod? from uh VRE sanophauges (or however you spell it)
Kimo'  [author] 6 Jul @ 4:57pm 
Update:
-Fixed sleep focus unlocked by everyone with psy powers, regardless of they fullfilled the conditions for it.
-Restored missing patches for vanilla traits.
Kimo'  [author] 5 Jul @ 10:15am 
@Ayana Can you please provide a log so we can take a look at it?
Ayana 5 Jul @ 9:04am 
I just added this midgame and suddenly all pawns, even those spawned after it was added, have the sleep meditation focus type.
Kimo'  [author] 3 Jul @ 1:50pm 
-Updated to 1.6
-Reduced the frequency of calls for sleeping, which should improve performance

Let me know if you find any issues.
Kimo'  [author] 11 Jun @ 2:06pm 
We will take a look at performance when we'll update the mod to 1.6.
Evono 11 Jun @ 6:29am 
@kimo could you look at the performance cost of this mod ? on a modlist of 470+ this is the 3rd heaviest mod right at LTO / Colored mood bar with 25+ pawns visible. https://i.imgur.com/p4FZXuF.png
Mauno 12 May @ 12:23pm 
Oh lol, for some reason I assumed this would be about watching sleeping people to meditate.