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
22 Dec, 2017 @ 11:53pm
13 Jun @ 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] 13 Jun @ 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 24 May, 2020 @ 8:53am 
thank you SO MUCH!
CephalopodDarius  [author] 24 May, 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 26 Feb, 2020 @ 9:40pm 
v 1.1?
chocolatepuddingfruit 25 Feb, 2020 @ 9:36pm 
hoping for update to new version; such a helpful mod
CephalopodDarius  [author] 20 Sep, 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 12 Sep, 2018 @ 10:22am 
i updooted to 1.0 mod auther msg me if you wnat it taken down
Fantasy System 21 Jul, 2018 @ 6:55am 
1.0 VERSION??
Inkspot Fox 25 Dec, 2017 @ 6:38am 
Bless you for making this.
mr_conga 24 Dec, 2017 @ 2:22am 
The washing machine mod is called Holy Washer, never actually used it myself though