边缘世界 RimWorld

边缘世界 RimWorld

31 个评价
Sleep Meditation Focus
   
奖励
收藏
已收藏
取消收藏
Mod, 1.5, 1.6
文件大小
发表于
更新日期
1.207 MB
3 月 29 日 上午 11:06
7 月 30 日 上午 11:09
8 项改动说明 ( 查看 )
您需要 DLC 才能使用该物品。

订阅以下载
Sleep Meditation Focus

在 Kimo' 的 1 个合集中
Kimo's small(-ish) tweaks mods
15 件物品
描述
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
热门讨论 查看全部(2)
4
7 月 28 日 下午 11:44
So does it or doesn't it require VPE?
royallyTipsy
0
7 月 28 日 上午 8:19
A humble suggestion to rename the mod
royallyTipsy
39 条留言
Kimo'  [作者] 10 月 3 日 下午 11:36 
I'll keep that in mind when/if the mods gets updated outside bugfixes.
Xardis 10 月 2 日 上午 8:37 
Would it be possible to add mod option to adjust psyfocus gain for each quality tier? And/or a toggle option to tie it to rest effectiveness?
Kimo'  [作者] 8 月 1 日 上午 5:45 
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 8 月 1 日 上午 12:42 
此留言正在等待我们的自动内容检查系统分析。在我们证实其内容无害之前(例如试图窃取信息的钓鱼站点链接),留言将暂时隐藏。
Alex Priner 8 月 1 日 上午 12:42 
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'  [作者] 7 月 30 日 上午 11:11 
Update:
-Improved performances
Kimo'  [作者] 7 月 30 日 上午 8:44 
@Smiley Face Killer does this happen with only this mod and it's dependency? If so, please send a full log
Smiley Face Killer 7 月 30 日 上午 4:24 
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 7 月 30 日 上午 4:22 
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'  [作者] 7 月 29 日 下午 6:52 
@othtim Could not reproduce. Tps stayed the same at night during testing with a bunch of animals