RimWorld

RimWorld

Not enough ratings
Automatic Bed Reassigment Forked
   
Award
Favorite
Favorited
Unfavorite
Mod, 1.5
File Size
Posted
790.897 KB
Jun 28, 2024 @ 5:58pm
1 Change Note ( view )

Subscribe to download
Automatic Bed Reassigment Forked

Description
This mod is an updated version of an existing mod. I claim no ownership of the mod. This version may be taken down by request from the original author.

Source code available on: Github[github.com]


This is my first mod. I make no promise of keeping it up to date and will delete this version if/when the original mod is updated.(Original mod)




Here the original description

This mod automatically reassigns pawns' beds when:
pawns are sharing beds with (non-polyamorous) non-partners
pawns are separated from their partners (or the partner they love the most if polyamorous)
pawns are suffering a mood penalty from a bedroom-specific trait (jealous, greedy, ascetic)
there are empty beds with better stats for the pawn (room impressiveness, rest effectiveness, comfort)
NOTE: These conditions can be toggled within mod options.

This mod also adds two gizmos to beds;
... one that allows you to toggle whether a certain bed can be utilized by the mod:


... and one that allows you to force a pawn to always claim and use a certain bed:


MAKE SURE you use the above gizmo if you're manually assigning beds to specific pawns, otherwise it can be overwritten by automatic reassignment.



A few things to note:
  • Everything this mod does will only run right before a pawn decides to go get rest. This means you shouldn't freak out if a bed isn't getting assigned immediately. (note: this also means the mod should be quite performance friendly)

  • Jealous or Greedy pawns can be prioritized to double beds over lovers (assuming the room that double bed is in, is the best/better than others). This is because lovers will suffer much less of a mood penalty overall.
    For example: Opinion of lover (+10) combined with Sleeping alone (-4) versus Jealous of #'s bedroom (-8) or Greedy for impressive bedroom (-8)

  • Ascetic pawns are ignored if they have a lover of which isn't also Ascetic. This is to avoid constant reassignment by the lover and the mood penalty associated with the bad room that the lover may receive.

  • You can adjust the improvement threshold for the better bed reassignment condition in mod options.



Very simple and lightweight mod, completely safe to add to or remove from saves.
11 Comments
SpaceDorf Aug 9 @ 4:37am 
thank you, I missed this mod.
Vintorez Jul 22 @ 5:02am 
Update for 1.6 pretty please :)
kongkim Jul 17 @ 3:25am 
Seems to work fine in 1.6

@Buritto if you want i can take over and keep the mod updated?
Have a few other mods i also do that with?
kongkim Jul 16 @ 8:24am 
yah an 1.6 would be nice.
thorman123456789 Jul 11 @ 11:49pm 
Is an update for 1.6 planned?
Mikhaleech Jun 11 @ 12:02pm 
May you please add the feature for sanguaphages to use BEDS to sleep instead of deathrest caskets?
kongkim Oct 27, 2024 @ 10:08am 
Thx
Narlindir Aug 13, 2024 @ 10:08pm 
is not super great for choosing the best bed for royals tho
but you can manually force that edge case
Narlindir Aug 13, 2024 @ 3:17pm 
works like a charm so far!
Protok Jul 14, 2024 @ 12:31pm 
Amazingly useful!