RimWorld

RimWorld

Not enough ratings
Eat Spoiling Food First
   
Award
Favorite
Favorited
Unfavorite
Mod, 1.3
File Size
Posted
Updated
329.407 KB
3 Jul, 2022 @ 4:12pm
9 Jul, 2022 @ 3:59pm
3 Change Notes ( view )

Subscribe to download
Eat Spoiling Food First

Description
Raging at your pawn eating the freshly cooked meal instead of the stack of spoiling in 1 hour meals ?
Drinking the fresh beers and letting the old ones rot ?

This mod fix this for you by making the pawns eat the most spoiled food first.

Details:

In vanilla Rimworld, what determine if a food is going to get eaten is a value called FoodOptimality (higher the better) and a small constant bonus modifier is applied if a food is going to spoils in less than 12h.

Meaning that a food spoiling in 1 hour has the same value than a food spoiling in 11h (same for 1 day and 3 days).

This mod cancel the vanilla logic and compute the FoodOptimality bonus modifier for spoiling food in a linear fashion according to remaining spoiling time (closest to fully spoiled gets more bonus).

The linear bonus is applied if a food is going to spoiled in less than 3 days and only applies on humans and player animals.

Technicality:

FoodOptimality value is computed according to distance between pawn and food modifier, food mood modifier, food nutrition modifier, ect (distance modifier has the greatest impact).

I've designed the linear spoil modifier to only have on small impact on the FoodOptimality algorithm.
That's means for example that between a 50 tile spoiling food and a really close fresh food, the linear spoil modifier will be negated by the distance modifier.

Mod dependencies : Harmony

Github : https://github.com/nathtest/EatSpoilingFoodFirst

Other mod :
- Caravan Auto Food Restrictions : https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2792347147
11 Comments
Mlie 22 Nov, 2023 @ 12:17pm 
Daniel95818 19 Dec, 2022 @ 1:56pm 
Will this be updated to 1.4?
Dobromir413 27 Oct, 2022 @ 10:54am 
1.4?
2Kane 16 Jul, 2022 @ 2:05pm 
so this mod will save building a -1 ° freeter room. kinda cheating :D
Fizz 11 Jul, 2022 @ 3:35pm 
Uhm, I'm not sure if it's this mod exactly, but my colonists are feeding prisoners some questionable "food" items - I had to disallow stacks of whiskey and mechanite serum to get them to feed the prisoner normal food. This is the only mod that I know modifies the FoodOptimality value, and also every poor food item I mentioned is a modded item, so I wonder if this mod has weird interactions with others...
Anyway yeah my colonists would've fed drugs to my prisoner, one dose at a time, because the food meter wasn't filling up - until they overdose
Yodalorian  [author] 9 Jul, 2022 @ 4:00pm 
@SheakZarnn fixed on latest mod update
SheakZarnn 9 Jul, 2022 @ 2:38pm 
Mod breaks taming. I'm getting exceptions every time pawn wants to tame animal.
Yodalorian  [author] 9 Jul, 2022 @ 10:31am 
@Duke Flapjack no it's not working for cooking. I'm looking to maybe add that.
RudyardGustaf 9 Jul, 2022 @ 9:28am 
Def huge for new players who haven't perfected the early game. Like me. I am that player.:steamthumbsup:
Incognito100110 7 Jul, 2022 @ 11:36pm 
i've always don't cared too much about eating fresh food, but anyways thanx