Ради вашего удобства наш сайт использует cookies! Узнать больше! Мы используем cookies

Only Taint Fabrics

Makes it so only apparel created with leather or fabric gets tainted on death, meaning most armors or metallic clothing no longer gets tainted on death. I also patched flak armor, because I feel like that just makes sense. The "lore" or explanation behind this is anything that doesn't have fabric or leather wouldn't get stained and thus wouldn't become tainted. This mod uses C# code which first checks if an armor's StuffCategories contains fabric or leather, then if any recipes that produce the armor contain fabric or leather, and finally if its costlist has fabric or leather in it, otherwise it sets the "careIfWornByCorpse" tag to false of the apparel. As with my last mod, I'm fairly new to C# Rimworld modding so any necessary feedback is appreciated. This inspired by [url=https://steamcommunity.com/sharedfiles/filedetails/?id=914638336] No Death Cooties On Armour[/url] by cucumpear, but differs in that it dynamically patches every item rather than just a select few. This should work with all modded apparels due to the way it checks recipes/materials. This can be added mid-save, but any existing tainted armors will remain tainted.