0 of 0

File information

Last updated

Original upload

Created by

sodapotato

Uploaded by

sodapotato

Virus scan

Safe to use

About this mod

Sleeping early now grants you bonus max energy for the next day!!

Permissions and credits
Changelogs
Donations
Attention! ALWAYS back your save file and reset your max energy back to its original value before updating this mod!
Simply by sleeping later than 12:00 AM will reset the max energy back to its base value. 



It always bothers me that there is minimal benefit to sleeping early in the game.
So most people stay up till 2am unless there is nothing to do for the day.


Planned Features:

I am new to programming and modding, this is also my first mod!
I will try my best to implement these features but it might take a while for me to figure everything out.

  • Scale the bonus max energy on a percentage basis based on the current max energy value, instead of a fixed amount. So it stays relevant in the late game.
  • Adding different versions with other buffs. (Speed, defense...etc.)
  • Make everything customizable.


What It Does:

This mod gives players a strong reason to sleep early! If you have loads of work to do the next day,
sleep early today so you have more max energy tomorrow!
If a player sleeps before the clock hits 12:00 AM,
he/she will gain a 25 bonus max energy the next day for every hour before 12:00 AM, and up to 8:00 PM.
he/she will gain a 15% bonus max energy the next day for every hour before 12:00 AM, and up to 8:00 PM.
So a maximum of 60% bonus max energy if you decide to sleep before or at 8:00 PM. 

For example:

Sleeping at 10:00 PM will grant you 30% bonus max energy for the next day.
Sleeping anytime before 8:00 PM is equal to 8:00 PM. So the maximum bonus you can get is always an extra 60% max energy.
Sleeping at 12:00 AM sharp grants you no bonus, you must sleep BEFORE 12:00 AM.
Sleeping any time between the hours will count as the hour of the time you are at when you sleep.
(Sleeping at 10:50 PM  is the same as sleeping at 10:00 PM...etc.)

The bonus lasts for the whole day and it does not stack towards the next day.
It will always reset before doing the calculation again.
So if you decide to sleep early again, it will do the calculation on the base max energy value,
not the base plus bonus value you have currently.
If you decide to sleep at or later than 12:00 AM, the max energy will reset back to the base value the next day.

You can't cheat, either!
Gaining a max energy food buff before sleep will not be taken into account when doing the calculation.
It will always clear any buff before that.
The only thing will be taken into account is if you increase your base max energy value the legitimate way. (through Stardrops)


Compatibility:

It should be compatible with most mods, as long as they don't touch max energy.
I play with an insane amount of mods installed and it runs fine. 
I don't know about energy regen mods though, since I don't have those mods installed.



Multiplayer Compatibility:

It is multiplayer compatible, but the calculation only starts when all players go to sleep.


Installation:

Always, always back up your save file.
Drop the zip file into the "Mods" folder in your game directory.

Please be aware when uninstalling:
If you decide to uninstall the mod, please make sure the max energy is reset back to the base value first before you remove the mod.
Simply by sleeping later than 12:00 AM will reset the max energy back to its base value. 
If you don't do this before removing the mod, your base max energy will stay at whatever value it was before you removed the mod.