Day Sleep For Night Shifts
Workshop stats
Lifetime subscribers
Current subscribers
Lifetime favorites
Views
File size
Last updated
Published
Mod description
Day Sleep When Night Shift
Description
When characters are working late shifts, it can be beneficial for them to go to sleep after 8am. This mod is my solution to that issue.
A new autonomous action was created.
There are a few other various conditions for this action.
Nap rules have also been slightly modified to add some variability to length, prevent nap chaining back to back, etc.
***Intended to compliment mod Get Up To Pee (and Other Needs)*** -> https://steamcommunity.com/sharedfiles/filedetails/?id=3741354202
Specifics
Score Based Autonomy
Within ReliefNeed_Nap
Added Context Requirement RecentActionHistorySince NapOnBed 2h = FALSE
Removed TimeOfDay context requirement altogether. A “Nap” is just about how deeply into sleeping & the bed ya get, time of day is irrelevant and paras should be able to nap whenever.
Score Modifiers Added
+1 for TimeBeforeNextWorkday < 4h -3 for TimeBeforeNextWorkday < 2h -1 for RecentActionHistorySince NapOnBed since 5h -2 for RecentActionHistorySince SleepInBed since 9h +1 for HasPersonalityTrait Lifestyle_CleaningHabits_Sloppy +1 for HasPersonalityTrait Lifestyle_SleepingHabits_LateOwl
Within ReliefNeed_Sleep
Score 6 (vanilla)
Score Modifiers (from user Cotterpin’s suggestions: adding some additional modifiers, but at slightly different weights since the vanilla sleep has a higher initial score).
+3 for TimeBeforeNextWorkday <= 16hrs -1 for TimeBeforeNextWorkday >= 20h ◦ Goal: emulate not wanting to sleep as much when the next day is a day off, but favoring sleep a bit more when work is coming up the next day. +1 for HasPersonalityTrait Vibe_Serious +1 for HasPersonalityTrait Lifestyle_SleepingHabits_EarlyBird +2 for RecentActionHistorySince NapOnBed since 12h
Created Autonomous Action
ReliefNeed_Sleep_Daytime
Score 3
Score Modifiers
-1 multiplied for NeedScore Sleep +3 for TimeBeforeNextWorkday <= 16hrs +1 for HasPersonalityTrait Vibe_Serious +2 for HasPersonalityTrait Lifestyle_SleepingHabits_LateOwl (evening jobs would be easier to regulate for night owl Paras) -1 for TimeBeforeNextWorkday > 20h
Always Choose This Rule If Requirements Are Met = TRUE
- Context Requirements:
◦ Need Sleep <= 4 ◦ Time of Day 8:09am-7:42pm ◦ IsAtLotType Residence ◦ TimeBeforeNextWorkday > 4h
Autonomy Rules Removed time of day context requirement for Stop_BecauseLowNeedSleep_Sleep, Stop_BecauseLowNeedSleep_Nap and ReliefNeed_Nap
Actions
All Actions
NapOnBed Changed End Condition from fixed duration of 1h to the following, which allows for both shorter and longer naps by ~30m, and a sleep based end condition that should make the timing sometimes land between 33m and 90m. Paras will either nap till sleep need is 6 & for at least 33m OR they will get up after 90 minutes attempting to bring their sleep need to 6.
RequirementsAreFulfilled
- RequirementsOneMustBeTrue
◦ NeedValue Sleep >= 6 ◦ HasBeenDoingCurrentActionForTime 90m
Minimum Duration in Minutes 33
Written by the mod author on the Steam Workshop and shown in its original language.
More mods of this type
The most subscribed mods with the same Workshop tag. The number on each card is its lifetime subscribers.