RimWorld

RimWorld

Not enough ratings
Allow Prisoners To Eat Corpses
   
Award
Favorite
Favorited
Unfavorite
Mod, 1.5, 1.6
File Size
Posted
Updated
64.277 KB
22 Jun @ 12:00pm
6 Jul @ 9:41am
2 Change Notes ( view )

Subscribe to download
Allow Prisoners To Eat Corpses

Description
Prisoners should be able to be feed corpses and other food items at normal hunger levels (~20%). Compatible with Complex Jobs.

# Mod Compatibility

Mod/update compatiblity should be very high.
Prefix patches `FoodUtility.TryFindBestFoodSourceFor` and sets `desperate` and `allowCorpse` if `eater` is a prisoner. Only refers to those arguments. Does not change `allowSociallyImproper`, `allowVenerated`, `allowForbidden`, `allowHarvest`, or others from default.
`desperate` is needed else the game claims there is no food available/crashes. As a result prisoners might also eat leaves or beer or other stuff for food earlier than normal.

TODO: Do prisoners have `desperate` and `allowCorpse` set forever after being recruited?
TODO: Does `desperate` allow wardens to feed them anything regardless of food policies?
8 Comments
20 Oct @ 12:14am 
I'm not sure why these error logs are being generated on my end, causing prisoners who work and eat corpses to not gain any nutrition. It works fine when first loading into the game, but after some time passes, errors start occurring.
20 Oct @ 12:13am 
JobDriver threw exception in toil FinalizeIngest's initAction for pawn T-030 driver=JobDriver_Ingest (toilIndex=9) driver.job=(Ingest (Job_1940755) A = Thing_Corpse_Anty386575 Giver = JobGiver_Diet [workGiverDef: null])
System.NullReferenceException: Object reference not set to an instance of an object
Extreme Back Pain(from carrying)  [author] 14 Aug @ 9:15pm 
I don't have the dlc so I didn't consider that. I chose the method I did to minimize potential mod conflicts. It *should* be easy to fix, once I get some time
underboss572 13 Aug @ 7:06pm 
Any way to make this mod work for slaves as well?
HonorWrought 29 Jul @ 7:08pm 
Literally saved my run, 15 years in and down to my last colonist. Discover that if your last pawn has an incapability of cooking you can't recruit because prisoners are absolutely appalled by eating their friends raw, but if you butcher them first into tiny pieces they're completely fine with it.
Extreme Back Pain(from carrying)  [author] 6 Jul @ 9:42am 
Not sure why it wasn't working for you, it worked for me
Extreme Back Pain(from carrying)  [author] 6 Jul @ 9:42am 
Marked 1.6 as supported version in metadata
Jurain 22 Jun @ 12:22pm 
please update for 1.6 my prisoners are not currently eating corpses