边缘世界 RimWorld

边缘世界 RimWorld

25 个评价
Dead Apparel Apathy
   
奖励
收藏
已收藏
取消收藏
Mod, 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6
文件大小
发表于
更新日期
27.217 KB
2017 年 12 月 22 日 下午 11:53
6 月 13 日 下午 8:38
8 项改动说明 ( 查看 )

订阅以下载
Dead Apparel Apathy

描述
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 条留言
CephalopodDarius  [作者] 6 月 13 日 下午 8:45 
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 2020 年 5 月 24 日 上午 8:53 
thank you SO MUCH!
CephalopodDarius  [作者] 2020 年 5 月 24 日 上午 2:13 
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 2020 年 2 月 26 日 下午 9:40 
v 1.1?
chocolatepuddingfruit 2020 年 2 月 25 日 下午 9:36 
hoping for update to new version; such a helpful mod
CephalopodDarius  [作者] 2018 年 9 月 20 日 下午 8:44 
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 2018 年 9 月 12 日 上午 10:22 
i updooted to 1.0 mod auther msg me if you wnat it taken down
Fantasy System 2018 年 7 月 21 日 上午 6:55 
1.0 VERSION??
Inkspot Fox 2017 年 12 月 25 日 上午 6:38 
Bless you for making this.
mr_conga 2017 年 12 月 24 日 上午 2:22 
The washing machine mod is called Holy Washer, never actually used it myself though