Stardew Valley

File information

Last updated

Original upload

Created by

skn

Uploaded by

SknTheLisper

Virus scan

Safe to use

Tags for this mod

About this mod

A simple hunger system requiring the player to eat, or their energy will suffer. Highly configurable

Requirements
Permissions and credits
Changelogs
Donations
This is a recreation of my previous hunger mod(Suggestions are highly welcomed):
NB: Does not work in multiplayer.


It is just as configurable as it was previously, but some changes have been made(especially to default values). Your energy is reduced based upon your maximum energy, and your current hunger level(as it was when you went to bed, not when you wake up). Energy level you wake up is determined by this simple formula: MaxStamina * (HungerValue / HungerValueMax)

GoodFood is multiplied with foodmultiplier,  and all other food is divided with foodDivident, using the games edability stat as a default(No I don't have any real idea what it is, but it seems to be what the game use to determine energy\health gain on consumables).

Choosing to not eat\ignore food isn't going to kill you, you simply wake up with no energy until you eat something.


Full disclosure: I have barely played the game(even with my own mod), so balance, pacing etc can be a bit wonky. I did play one full year of the game where I rushed for a kitchen.

NB: Does not work in multiplayer.

Working On\Planned Features:
   Check out the Article here

Installation instructions:
Download then install SMAPI 
Unzip\Create folder named HungerMod in Stadrew Vallley\Mods\
Should look like this:
    Stardew Valley\Mods\HungerMod\  containing these files:
                                                       config.json
                                                       Hungermod.dll
                                                       Hungermod.pdb
                                                       manifest.json

Update instructions:
Same as installation, if new features are added that can be configured it will be automatically generated to your config file(No need to manually add it) 



Compatibility:
Compatible with all mods adding new food\consumables as long as they are associated with an object category(Fruit, Vegetable, Cooked, etc), individual consumables can be made an exception using the   "add_item_to_VeryGoodList": "O", "add_item_to_AlcoholList": "L", "add_item_to_NotList": "N",  and "add_item_to_RawList": "P",  keys. AlcoholList is used for the hangover system and will need individual items added to it(by default wine, mead, beer and pale-ale is on this list through the old ID list) through the use of the add_item_to_alcoholList  key(default L).

Configuration:
  "randomHungerReduction": true, - Randomly reduce hunger between hungerValueReduction and MaxRand
  "turn_off_listadding_after_consume": true, - Turns off the add-to-comp-list after you consume an item(so you won't have to manually keep track)
  "maxRand": 80, - Maximum amount the hunger will be reduced by
  "alcohol_not_food_msg": false, - when true shows not-filling message when drinking alcohol(for bevereges not considered food).
  "hangover_system": true, - Whether to use the hangover system or not
  "minimum_alcohol": 3, - How much alcohol you need to drink before you can have a chance of getting hungover
  "hangover_chance": 33,- The % chance(so 1 - 100) you'll get hungover
  "hangover_stamina": 25, - How much stamina you'll have left after getting hungover
 "rawFoodCompList": [], - Food considered to be raw(not good, and not "not food"), a.k.a the catch-all food type

Consumable categories that are not considered food, or is considered high quality food respectuflly, replace old system of IDs. Note that the blank item("") in notFoodCategory is a catch-all for items without a category(like seaweed, coffee).
  "notFoodCategory": [
    "flower",
    "forage",
    "artisan goods"
    ""
  ],
  "goodFoodCategory": [
    "cooking"
  ],


  "event_filling": true,- Whether events will fill you or not, if not the event days will be ignored.


Compatibility for other mods, added dynamically while playing using the add_item keys.
  "NotFoodCompItems": [],
  "alcoholCompDrinks": [],
  "veryGoodCompList": [],


  "Show_Hunger_Button": "H", - Previously button, shows your hunger value

Buttons to add items into the compatibility lists
  "add_item_to_VeryGoodList": "O",
  "add_item_to_AlcoholList": "L",
  "add_item_to_NotList": "N",
  "add_item_to_RawList": "P", - Adds to the new rawFoodCompList, mutually exclusive to good\not list.


  "food_type_message": true, - Shows what type of food you just consumed, such as good food, not food, etc.
  "ConstantStuffedMessage": false, - Show stuffed message everytime you eat after being full, when false only shows it once a day.
  "ShowNotFillingMessage": true, - Shows if an item you ate is not considered food.
  "FoodMultiplier": 2.5,- The multiplier for good\cooked food.
  "FoodDivident": 1.8, - The divident of raw\not good food.
  "HungerValueMax": 300.0, - Maximum filled value.
  "HungerValueReduction": 42.0, - How much the filled variable is reduced pr day(a.k.a, how hungry you get every night).
  "StartHunger": 279, - when you will start to feel hungry

What festivals are considered free-food festivals. Requires the player to actually attend the festival(by meeting up).
  "festival_days": [
    "egg festival",
    "flower dance",
    "luau",
    "spirit's eve",
    "feast of the winter star"
  ],

Food item list(vanilla game) of what is considered what type of consumable(not food, alcohol, or cooked\good food, any consumable not mentioned is considered raw food, including mods).
  "NotFoodItems": [  -snip-
  ],
  "alcoholDrinks": [  -snip-
  ],
  "VeryGoodFoodItems": [ -snip-
  ],


Messages to be displayed(FoodMessage text is only displayed if "food_type_message" is true) 
  "NotFoodMessage": "That was not filling at all.", - Message dispalyed when you eat something that's not food.
  "RawFoodMessage": "That was barely a meal", -  Message displayed when you eat food that's neither "not food", and "good food".
  "GoodFoodMessage": "A feast for the mouth!", - Message displayed when you eat good food
  "FullMessage": "You are satisfied.", - Message when your hunger value is maxed as you eat.
  "CurrentHungerValueMessage": "Current hunger Value: ", - Message when you press show hunger button
  "festival_eat_message": "You've gorgued yourself on the free-food availible!" - Message displayed when you attend a food Festival
--

With default values you'll start seeing hunger immediatly after going a day of no eating, and it'll slowly chip down how much energy you have each-day, so you can choose to go a while without eating, without it feeling like you are being too punished(but clearly encouraged to eat), also don't need the most expensive or best food to maintain your hunger values. After about 7 days of no eating you won't have any energy when you wake up.