Elin
Better Sleep
52 Comments
Omega  [author] 27 Apr @ 10:21am 
Updated the mod to add a setting for customizing the number of turns before the player character fully falls asleep.

プレイヤーキャラクターが完全に眠るまでに必要なターン数をカスタマイズできる新しい設定を追加しました。

更新了模组,新增了一个设置,可自定义玩家角色完全入睡前所需的回合数。
m1chael 10 Apr @ 5:59am 
@Omega Okay, I guess I misunderstood the effect of the cappuccino buff. Sorry! Thanks for verifying it.
Omega  [author] 25 Mar @ 6:37am 
@m1chael
Cappuccino reduces the sleep stat by 20. The Energizing trait gives the Sharpened Mind buff, which keeps the sleep stat from changing for 1200 turns. Which part of the coffee effect is causing trouble?

カプチーノは睡眠ステータスを20下げるよ。エナジャイズ特性は「鋭い思考」バフを付けて、睡眠ステータスが1200ターン変化しない。コーヒーのどの効果に困ってる?
Omega  [author] 25 Mar @ 6:21am 
@m1chael
I haven't used coffee yet. I'll check what it does to sleep.
m1chael 25 Mar @ 3:45am 
Are there any plans to address the option to enable/disable the coffee effect, as it seems that the recently added coffee effect has not been addressed?
Omega  [author] 13 Feb @ 10:30am 
@Question
You can have a look in RecipeManager.GetUnlearnedRecipe. I just switch onlyUnlearned check to true in the mod, so I don't change too much vanilla code. I didn't really dig too much into.
Question 13 Feb @ 10:15am 
Interesting, but if im not wrong, you do not need sufficient crafting skill to get a recipe via sleep right? Also, are the new recipes being excluded by default?
Omega  [author] 13 Feb @ 6:17am 
@Question
Yes, it shares the same code as hammering for recipes.
Question 13 Feb @ 6:14am 
Do you need a crafting skill within 5 levels to get the recipe via the mod?
Omega  [author] 13 Feb @ 6:07am 
@Question
The code for prioritizing unlearned recipes is not 100%. There are player skill checks and hidden recipes which I didn't want to touch.
Question 13 Feb @ 5:18am 
Some of the new recipes in the nightly version do not appear to be getting prioritized by the "only learn unlearned recipes" option. E.G. I just slept, and i improved the recipe of modern chest. I then checked a book seller NPC and saw an unlearned recipe of pumpkin lamp.
Omega  [author] 14 Jan @ 12:24pm 
@Question
That makes sense. The same thing happened to me when I was testing.
Question 14 Jan @ 12:24pm 
It doesnt happen all the time for me, it happens rarely. I just checked again and i think it might be the same recipe, just two variants of it? And learning one unlocks the other. Steam wont let me post the URL to the image or upload the screenshot here...

One recipe was "metal grille floor (platform)" and the other was "metal grille floor".
Omega  [author] 14 Jan @ 11:50am 
@Question
I created a new character and was only able to learn 1 new recipe per sleep with the unlearned setting turned on.
Question 14 Jan @ 11:00am 
I have the "only learn unlearned recipes" option turned on and i noticed that you can sometimes learn two recipes from one sleep. Is that intended? Its apparently not supposed to happen in vanilla.
虛無_鬼王 11 Jan @ 10:12pm 
謝謝作者! 運行的很正常! 終於又可以毫無顧忌地使用冥想了! >u<
虛無_鬼王 11 Jan @ 10:08pm 
謝謝! 我立刻試試看!
Omega  [author] 11 Jan @ 10:06pm 
@虛無_鬼王
现在应该可以正常工作了。如果“[Can Sleep During Meditate = false]”,这意味着你在冥想或休息技能时永远不会入睡。
虛無_鬼王 11 Jan @ 9:49pm 
謝謝 TAT
Omega  [author] 11 Jan @ 9:48pm 
@虛無_鬼王
哦,我会把它加回来的。给我一些时间来处理
虛無_鬼王 11 Jan @ 9:46pm 
我需要,就是為了這個訂閱這個mod的 QAQ
Omega  [author] 11 Jan @ 9:45pm 
虛無_鬼王
澄清一下,如果“[Can Sleep During Meditate = false]”,表示模组会遵循游戏的默认行为。如果你感到困倦或疲劳,可能会入睡,如果不困或不疲劳,系统将帮助恢复你的健康,同时保持清醒。如果“[Can Sleep During Meditate = true]”,你就可以在使用冥想/休息技能时随时入睡。

另外,我移除了完全禁止冥想时睡觉的功能。不确定是否需要这个功能。
虛無_鬼王 11 Jan @ 9:44pm 
抱歉說的不夠清楚,上到下是這樣的:
禁用"是否可以睡覺",啟用"啟用自動保存",禁用"啟用僅未學習的配方",禁用"啟用冥想時可睡覺"
剩下的設定為預設,按鍵綁定為"None"
虛無_鬼王 11 Jan @ 9:35pm 
诶? 是這樣嗎? 我以為禁用“冥想时可以睡觉”就可以了
不過我有看設定[Can Sleep During Meditate = false],還是說這個不對?
Omega  [author] 11 Jan @ 9:27pm 
@虛無_鬼王
能解释一下冥想时睡觉的问题吗?模组现在的运作方式是,如果启用了“冥想时可以睡觉”的功能,你可以在使用冥想/休息技能时随时睡觉。如果禁用了这个功能,就会恢复默认的冥想/休息行为。
虛無_鬼王 11 Jan @ 5:26pm 
作者作者,禁止冥想睡眠突然對我無效了,這是不是跟另一邊一樣的問題啊?
Omega  [author] 9 Jan @ 9:21pm 
Updated the mod to add the Mod Options menu for easier configuration and introduced the ability to prioritize unlearned recipes during sleep. Players can now configure all mod settings directly in the menu.

Mod Optionsメニューを追加し、設定のカスタマイズを簡単にしました。また、睡眠中に未習得のレシピを優先して学習する機能を導入しました。プレイヤーはメニューから直接すべての設定を変更できます。

更新了模组,新增了Mod Options菜单以简化配置,并引入了在睡眠期间优先学习未掌握配方的功能。玩家现在可以通过菜单直接配置所有模组设置。
Omega  [author] 9 Dec, 2024 @ 9:01am 
Updated the mod to add the option to control sleeping during meditation. Players can now toggle sleep on or off during meditate.

瞑想中の睡眠を制御するオプションを追加しました。プレイヤーは瞑想中の睡眠をオンまたはオフに切り替えることができます。

更新了模组,新增了在冥想时控制睡眠的选项。玩家现在可以在冥想中打开或关闭睡眠功能。
Omega  [author] 9 Dec, 2024 @ 8:58am 
@T10086
如果你想在冥想时禁止睡眠,可以将 EnableCanSleepDuringMeditate 设置为 true,并将 CanSleepDuringMeditate 设置为 false。这样就不会在冥想时触发睡眠了。

To disable sleep during meditation, you can set EnableCanSleepDuringMeditate to true and CanSleepDuringMeditate to false. This will stop sleep from being triggered while meditating.
Omega  [author] 9 Dec, 2024 @ 8:25am 
@T10086
感谢你的反馈以及使用我的模组。我理解在冥想时睡眠的问题,我会添加一个选项,让玩家可以选择在冥想时是否允许睡眠。这样玩家可以根据自己的需求决定是否让冥想导致睡眠。

Thanks for your feedback and for using my mod. I understand the issue with sleep during meditation, and I will add an option to enable or disable sleep while meditating
T10086 9 Dec, 2024 @ 8:14am 
高精力在温泉中冥想刷buff也会导致睡眠,有什么办法改进一下么?
Omega  [author] 5 Dec, 2024 @ 9:17am 
I updated the mod to include a menu. Changes take effect without restarting.

メニューを追加してMODを更新しました。再起動せずに変更が反映されます。

我更新了带有菜单的MOD。更改无需重启即可生效。
Omega  [author] 1 Dec, 2024 @ 8:02pm 
@Zydoo
I think the issue is AutoExplore. There is a config minHP and minMP which tells AutoExplore to rest/sleep. If your hp/life or mana are less than the config, it will keep trying to rest/sleep even when starving.
Zydoo 1 Dec, 2024 @ 2:41pm 
if it matters i did turn on this

## Enable or disable the sleep power multiplier.
## Set to 'true' to activate the multiplier, or 'false' to disable it.
## 睡眠パワー乗数を有効または無効にします。
## 'true' に設定すると乗数が有効になり、'false' に設定すると無効になります。
# Setting type: Boolean
# Default value: false
Enable Sleep Power Multiplier = true

## Multiplier for the power value during sleep. Must be a whole number.
## This multiplier affects the following:
## - HP healing
## - Stamina recovery
## - Mana restoration
## 睡眠中のパワー値に乗じる倍率を設定します。整数のみ。
## これには以下が影響します:
## - HP回復
## - スタミナ回復
## - マナ回復
# Setting type: Int32
# Default value: 1
Sleep Power Multiplier = 2
Zydoo 1 Dec, 2024 @ 2:39pm 
yes sorry AutoExplore on a day 700+ save in floor 15-20 of the void as a war mage .. would do two or 3 creatures then sleep and some time it would go back to exlpore but then other times it would loop sleep and the third time waking up the pc would be starving if you let the sleep loop continue the pc will die .
Redrum Jackle 1 Dec, 2024 @ 10:56am 
That change is awesome, thank you again.
Redrum Jackle 1 Dec, 2024 @ 10:42am 
Awesome, thank you. I will try it out.
Omega  [author] 1 Dec, 2024 @ 10:33am 
@Zydoo
Do you mean AutoExplore? I'll need to do some tests.
Omega  [author] 1 Dec, 2024 @ 10:27am 
@Redrum Jackle
You can now disable Better Sleep during meditation by toggling the EnableSleepDuringMeditate setting to false. This will allow you to meditate without being forced to sleep.

瞑想中にBetter Sleepを無効にするオプションが追加されました。設定ファイルでEnableSleepDuringMeditateをfalseに切り替えることで、疲れていても強制的に眠ることなく瞑想を行うことができます。
Zydoo 1 Dec, 2024 @ 9:59am 
does not play well with auto adventure .. you end up in sleep loops and then starving.
Redrum Jackle 1 Dec, 2024 @ 5:03am 
Whenever my HP or my Pet's HP is low I use the ability meditate. Usually I have a good amount of stamina to avoid sleeping when I do, but with the mod enabled no matter how much stamina my character passes out which is the risk if sleepy or tired normally.
Omega  [author] 1 Dec, 2024 @ 4:13am 
@Redrum Jackle
I'll see if I can add as an option. How do you use meditate?
Redrum Jackle 30 Nov, 2024 @ 9:38pm 
any way you can set it so that you don't sleep when meditating? stops you from actually meditating and makes you pass out.
hori 30 Nov, 2024 @ 10:27am 
セーブ無効と通常通り眠れることを確認しました
ありがとうございました
Omega  [author] 30 Nov, 2024 @ 9:53am 
Latest update fixes a bug. Now you can have the mod enabled (EnableBetterSleep) but disable the sleep anytime (EnableCanSleep) part of the mod. This still let's you control autosave, sleep hours, or sleep power.
Omega  [author] 30 Nov, 2024 @ 9:44am 
@hori
オートセーブを無効にするだけで、睡眠ロジックに影響を与えたくない場合は、以下の設定を変更してください。

EnableBetterSleep : true
MOD全体を有効にします。

EnableCanSleep : false
ゲームの通常の睡眠ルールが適用され、「CanSleep」ロジックを無効にします。

IgnoreAutoSave : true
睡眠中のオートセーブを無効にします。

EnableBetterSleep = true
EnableCanSleep = false
IgnoreAutoSave = true
Omega  [author] 30 Nov, 2024 @ 9:02am 
@hori
ありがとうございます。
バグをご指摘いただき、感謝します。CanSleepValue を false に設定すると、どのような状況でも眠れなくなる問題を確認しました。この問題を修正する予定なので、次回のアップデートをお待ちください。フィードバックをいただけると助かります。
hori 30 Nov, 2024 @ 8:45am 
自動セーブの無効だけほしかったのですが常に眠れる設定をfalseにするといかなる状態でも眠れなくなります
Omega  [author] 30 Nov, 2024 @ 5:19am 
The mod has been updated to include a new sleep power multiplier feature. This multiplier enhances stat recovery (HP, Stamina, Mana) during sleep. You can enable or disable the feature and configure the multiplier in the settings.
Omega  [author] 30 Nov, 2024 @ 3:20am 
@HeZe
这是一个很好的想法,我会考虑加入一个可以调节睡觉时恢复精力量的功能。感谢您的建议。