A bed expansion for RimWorld.
Have you ever wondered why is it that we just need stone blocks or steel to build a bed, while wool and furs pile up in the warehouse, unused? Do you get a feeling it would be way more comfortable to lay down on something soft? And what if that cozy bed could also help with the freezing cold? Well, that's what this mod is all about!
Now your beds will only provide full comfort if you add some mattress, pillows and a blanket - or a bedding set, to simplify. These can be made at your regular tailor bench or crafting spot after researching complex furniture. And depending on what they are made of, your beds can get even more comfortable than the regular ones, affecting their effectiveness in providing rest as well. Also, the material insulation properties carries over to the bed, helping keep your pawns warm and, therefore, helping to prevent negative thoughts when sleeping in cold.
But blankets, of course, can't help with the heat. For those playing on tropical climates, we included a tropical alternative to beds: hammocks! How come nobody thought of that before? These cheap hanging rigs may not be as comfortable as a full bed, but they do help cooling off. And being cheap and light, they can also be used as travel beds, just like bedrolls!
This is how it works, in detail:
When you load the mod, all vanilla game beds are modified. First, their comfort and rest effectiveness stats are drastically reduced, to the point that a poor bed might not be much more comfortable than sleeping on the ground (check the table for the numbers). To accommodate for that, the sleeping spot is downgraded as well: zero comfort and reduced rest effectiveness, down to 30%. This means that if your pawns are forced to sleep on the floor and you don't assign proper work hours for them, they will be useless for the better part of the day! That makes it even more important to build beds as soon as possible.
But in order to get really comfy ones, you must equip them with beddings. They come in two sizes - single and double - and can be made out of textiles on the crafting spot or tailor benches after researching complex furniture. You select which goes on what bed on the new "make bed" button. They not only provide a bed color to your interior design efforts, but also add some cold insulation and bump up comfort and rest effectiveness. That's based on the material they're made of and the bed quality.
You don't need to add anything to Bedrolls and Hammocks, of course. They get their buff directly from the textile they are made of (and yes, that means a bedroll might be more comfortable than a bed without a mattress, just like real life!). And unlike the other beds, hammocks use their material's heat insulation properties, making them a true tropical alternative (even if they're not big enough for couples to sleep comfortably together).
To measure how much a material can contribute to a bed's comfort and rest effectiveness, the mod implements a new stat. The softness of every textile is calculated on startup, taking into account its armor capabilities as a measure for hardness, its temperature offsets as a measure of how much fur is involved, and their price point as a measure of how luxurious it is. This is applied to every textile, even the ones added by other mods (so you can even make a hemp blanket if you want to!).
The result is that hard leathers and space-age synthetic fabrics, which are usually good for armor, are not that desirable to put on your bed. On the other hand, those weak fabrics that have a tendency to pile up as the game progresses, such as cloth and wool, make the best beddings. Check the table for the softness of vanilla textiles.
You can safely add this to your saved game. Beware: all existing beds will get a lot less effective until you craft appropriate beddings. If you wish to remove it, just delete any bedding bills on tailor benches or crafting spots before you do it.
Compatible with:
If you are using Psychology, watch out for insomniac colonists. Since they're already wired to get less rest from sleep, these beds with reduced effectiveness can be especially destructive for them. Make sure they get a well equipped bed or they'll be sleeping all day long.
The latest version has been designed for maximum compatibility. Unpredicted modded beds should work normally, but you might run into issues if using another mod that changes the vanilla beds.
All it takes to incorporate the basic features into other beds is a simple xml patch. If you want to make it happen for your favorite mod, you can either ask me how to do it or, even better, ask the author to contact me. I can't promise to add your request, but I'll gladly assist anyone willing to do it.
If any other unforseen issues arise, please let me know in the comments.
English, Chinese, Italian, Portuguese and Japanese. (looking for volunteers for more languages)
This mod was clearly based on gadjung's RealBeds. Many thanks for his coolness in letting me use some of his code on the first version! Also, it wouldn't be possible without the invaluable help of Nuka Frog, Mehni, Zamu and the folks at the RimWorld Discord channel. Textures for Gloomy Furniture & Gloomy Vanilla compatibility were created by Drawer based on the originals by Gloomylynx, with his authorization. RIMkea and Vanilla Furniture Expanded compatibility by the great Dr. Zhivago, with textures by Oskar Potocki. Code improved with the collaboration of @yanolja. Chinese translation by leafzxg and Miyuri. Italian translation by Sergio di Napoli. Japanese translation by Miyuri. Thank you!