RimWorld

RimWorld

29 ratings
Sleep Meditation Focus
   
Award
Favorite
Favorited
Unfavorite
Mod, 1.5, 1.6
File Size
Posted
Updated
1.207 MB
Mar 29 @ 11:06am
Jul 30 @ 11:09am
8 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 suggestion!
A: Leave it in the comments below!

Q: I have a bug!
A: Please properly report with a full hugslib log. ALL REPORTS WITHOUT A LOG WILL BE IGNORED!


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
Popular Discussions View All (2)
4
Jul 28 @ 11:44pm
So does it or doesn't it require VPE?
royallyTipsy
0
Jul 28 @ 8:19am
A humble suggestion to rename the mod
royallyTipsy
37 Comments
Kimo'  [author] Aug 1 @ 5:45am 
We can't do anything without a full log. But this was fixed with the last update. Please properly update your mod by unsubbing and ressubing.
Alex Priner Aug 1 @ 12:42am 
This comment is awaiting analysis by our automated content check system. It will be temporarily hidden until we verify that it does not contain harmful content (e.g. links to websites that attempt to steal information).
Alex Priner Aug 1 @ 12:42am 
Hello, same here, performances are awful. Here is some part of the log: "150
UnityEngine.StackTraceUtility:ExtractStackTrace ()
Verse.Log:Message (string)
VPESleepMeditation.Toils_LayDownPatch:Postfix (Verse.Pawn,RimWorld.Building_Bed,bool)
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:RimWorld.Toils_LayDown.ApplyBedRelatedEffects_Patch1 (Verse.Pawn,RimWorld.Building_Bed,bool,bool,int)
RimWorld.Toils_LayDown/<>c__DisplayClass6_0:<LayDown>b__1 ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.AI.JobDriver.DriverTick_Patch2 (Verse.AI.JobDriver)
Verse.AI.Pawn_JobTracker:JobTrackerTick ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Pawn.Tick_Patch3 (Verse.Pawn)
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Thing.DoTick_Patch1 (Verse.Thing)
Verse.TickList:Tick ()"
(part1)
Kimo'  [author] Jul 30 @ 11:11am 
Update:
-Improved performances
Kimo'  [author] Jul 30 @ 8:44am 
@Smiley Face Killer does this happen with only this mod and it's dependency? If so, please send a full log
Smiley Face Killer Jul 30 @ 4:24am 
This is one of several of the logged entries, but again, this is getting constantly plastered into the log. Which is probably why the TPS is getting destroyed by it
https://pastebin.com/FBeJQu6k
Smiley Face Killer Jul 30 @ 4:22am 
I didn't have this issue until today, so I think it's from yesterdays update. But I asked chat what these white logs were being spammed in the console

"running a Harmony patch on Toils_LayDown and logging a message to the console every single tick a pawn lies down" It's telling me I need to go into the files and delete/comment out the line like "Log.Message("15");"

Not a coder and I'm not just going to take ai's words as gospel here. Just wanted to see if you have any ideas on what it is. Because the console is just getting absolutely slammed with these logged messages
Kimo'  [author] Jul 29 @ 6:52pm 
@othtim Could not reproduce. Tps stayed the same at night during testing with a bunch of animals
othtim Jul 29 @ 5:27pm 
Just adding this mod incredibly reduces my TPS. Does this somehow fire on animals? Whenever animals go to sleep my TPS just tanks with this mod enabled.
Kimo'  [author] Jul 29 @ 10:07am 
Can you see if this happens with only this mod and it's dependency loaded? And if it happens then, please send a log