RimWorld

RimWorld

25 ratings
Dead Apparel Apathy
   
Award
Favorite
Favorited
Unfavorite
Mod, 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6
File Size
Posted
Updated
27.217 KB
Dec 22, 2017 @ 11:53pm
Jun 13 @ 8:38pm
8 Change Notes ( view )

Subscribe to download
Dead Apparel Apathy

Description
When a pawn dies their clothes become flagged as having been worn by a corpse, and this causes anyone who wears the apparel to take a mood penalty. This mod prevents gear from being ruined by the death of its former owner.

Note that any gear which has already been flagged as having been worn by a dead person will not be affected by this mod. It only prevents the flag from being set when someone dies.


Updated and ready for 1.5. I rewrote the logic for 1.5 to make it less likely to interfere with other apparel-related death events. I'm not aware of any issues the old logic caused, but especially with the new horror expansion I want to make sure it's not going to cause any weird behavior.
13 Comments
CephalopodDarius  [author] Jun 13 @ 8:45pm 
Updated for 1.6. Since I previously commented with the original code, figured I'd mention that as of 1.5 it no longer just patches out the method. There may be logic that triggers off of that event that shouldn't be suppress, so now it patches the opcodes to remove the condition that sets the "worn by dead person" flag. The source code is included in the mod folder
fuzzzbutt May 24, 2020 @ 8:53am 
thank you SO MUCH!
CephalopodDarius  [author] May 24, 2020 @ 2:13am 
Deep apologies for the late update (had a kid, busy job, hardware failure, then health issues to boot), but I finally updated! The old version could be coerced to continue working, but in case I have to deal with life again in the future, here's the actual code. It's really simple, and uses HarmonyLib:

public DeadApparelApathyLib(ModContentPack content) : base(content)
{
var h = new Harmony("com.webbedsquid.vincent.darius");
h.PatchAll(Assembly.GetExecutingAssembly());
}

[HarmonyPatch(typeof(Apparel))]
[HarmonyPatch("Notify_PawnKilled")]
public class NoDeadClothingFlagPatch
{
private static bool Prefix()
{
return false;
}
}

Thank you!
fuzzzbutt Feb 26, 2020 @ 9:40pm 
v 1.1?
chocolatepuddingfruit Feb 25, 2020 @ 9:36pm 
hoping for update to new version; such a helpful mod
CephalopodDarius  [author] Sep 20, 2018 @ 8:44pm 
Sorry for the delay. I updated for 0.19.2009. stafftank, feel free to keep yours up, and thank you for re-uploading for others to use while I was away!
stafftank Sep 12, 2018 @ 10:22am 
i updooted to 1.0 mod auther msg me if you wnat it taken down
Fantasy System Jul 21, 2018 @ 6:55am 
1.0 VERSION??
Inkspot Fox Dec 25, 2017 @ 6:38am 
Bless you for making this.
mr_conga Dec 24, 2017 @ 2:22am 
The washing machine mod is called Holy Washer, never actually used it myself though