Stardew Valley
0 of 0

File information

Last updated

Original upload

Created by

Goldenrevolver

Uploaded by

Goldenrevolver

Virus scan

Safe to use

About this mod

Farm animals can die of old age, hunger or illness, like in the old days of harvest moon

Permissions and credits
Farm animals can die of old age, hunger or illness, like in the old days of harvest moon.

Compatible with Stardew Valley 1.6.1 and SMAPI 4.0.1. Source available on Github:
https://github.com/Goldenrevolver/Stardew-Valley-Mods



Feature 0: Popup message when an animal dies from one of the below causes or from a wild animal attack in the base game (if you didn't know your animals could die, here you go https://stardewcommunitywiki.com/Animals#Wild_Animal_Attacks). This message can also be translated so if your language isn't included (currently available: english, german, russian, PT-BR) you can add it yourself (look at the i18n folder, contact me if you want me to upload it for everyone).





Feature 1: Death by starvation

Starvation is currently pretty simple. After not feeding an animal (or letting it eat grass outside) for 5 consecutive days, it dies of starvation (can be changed in the config). One day of feeding is enough to fully reset starvation.

Keep in mind that if an animal is stuck outside (i.e. you closed the barn/ coop door) and you go to sleep immediately it does not have time to eat grass, it actually needs the time to physically find and eat grass (base game behaviour).


Feature 1.5: Death by dehydration (requires Animals Need Water)

As you can imagine this is really similar to starvation. If you have Animals Need Water installed, animals need to drink water either inside their home or outside. After not getting water for 3 consecutive days, it dies of dehydration (can be changed in the config). One day of drinking is enough to fully reset dehydration.

Also similarly to starvation, keep in mind that if an animal is stuck outside (i.e. you closed the barn/ coop door) and you go to sleep immediately it does not have time to drink water, it actually needs the time to physically walk to water (Animals Need Water behaviour).


Feature 2: Death by illness

Illness is calculated as a score that increases as bad things happen to the animal and slowly decreases again if it's doing better. Things that increase the illness score by 1 are:
  • not getting fed or not getting water with Animals Need Water (doesn't stack if both are the case by design, does not apply if death by starvation/ death by dehydration are not enabled)
  • getting trapped outside
  • getting trapped outside and it's bad weather or winter (so a total of two points with the previous condition)
  • barn/ coop door is open, it's not winter, it's bad weather and there is no heater
  • barn/ coop door is open and it's winter (having a heater doesn't prevent this)
  • barn/ coop door is closed, it's winter and there is no heater
  • an animal got killed by a wild animal attack
  • the animal just gave birth

These values stack, so if an animal was trapped outside overnight in bad weather, witnessed a wild animal attack and also had no grass to eat outside, it's illness score will increase by 4 points in one night.

If none of the cases apply or you have manually petted your animal the previous day, the illness score decreases by 1.

If the illness score of an animal reaches 7, the animal dies (can be changed in the config). If an animal reaches half the score required to die, there will be a message at the start of the day (and every day moving forward as long as it's still the case) that the animal is ill (missing features: an item to heal illness, change the display messages and emotes to consider illness). 


Feature 3: Death by old age

Old age is a tricky one. In harvest moon the age values were quite low for being a non industrial farm. I did do some research on the ages, but it's a difficult topic and I also changed some values for gameplay-balancing (if you have any balance recommendations let me know). You can change all these values in the config file. Most users probably won't play a save file long enough to experience deaths by old age:
  • Cows: 14-16 years
  • Chickens: 5-7 years
  • Ducks: 8-12 years
  • Rabbits: 8-12 years
  • Goats: 8-12 years
  • Sheep: 10-12 years
  • Pigs: 15-20 years
  • Ostriches: 40-45 years (yes, I was amazed, too)
  • Dinosaur: 100 years (because I felt like it)

When an animal reaches its minimal age, it has a chance to die every day, increasing with every day passed.


Logging:
With currently limited ways of displaying the hidden illness, starvation and dehydration stats you may want to see what the mod is actually doing. You can enable extensive logging in the debug console (the window that always opens when you start SMAPI) by enabling verbose logging for SMAPI. To do this, go to your game folder and then the folder smapi-internal. Then open config.json and change "VerboseLogging": false, to "VerboseLogging": true, (Be careful to not remove the comma after false/true) and save. You should now see whenever I change one of the three stats.


Known issues:
None.


Requirements:
SMAPI: I built version 1.7.2 of this mod based on version 4.0.1. It should be compatible with a few future versions and a few prior version. You can get the latest version of SMAPI here.


Installation:
I can't restore animals that you accidentally lost. Use this mod at your own discretion and make backups of your saves if needed!

Install SMAPI. Then extract the content of the downloaded zip file into the SMAPI mods folder and start the game via the SMAPI launcher or Steam if you have set the launch option for SMAPI in Steam. The config file will be generated inside the folder of the mod. Close the game to edit it and restart the game.

You can also optionally use Generic Mod Config Menu to change the config ingame without the need to close and restart (otherwise you need to restart) but it is not required to be installed.

Of course the dehydration feature requires Animals Need Water to be installed, but if you don't want to use it, you don't need the mod.


Updating: 
Simply delete the prior version, install the new one and check the updated config created after the first startup (Changes require restart to take effect if you have not made them with Generic Mod Config Menu).


Uninstallation:
You can delete this mod from your mods folder at any time to remove the features.