logging clothing items + all hats count as nude

This commit is contained in:
c0ffee 2023-07-19 07:37:54 -07:00
parent 68db66ac16
commit ea886df513
2 changed files with 12 additions and 8 deletions

Binary file not shown.

View File

@ -15,19 +15,23 @@ namespace RJW_Events
{ {
protected override bool Satisfied(Pawn pawn) protected override bool Satisfied(Pawn pawn)
{ {
//if pawn is rendering apparel they shouldn't be, //if pawn is rendering apparel they shouldn't be,
if (pawn.Drawer.renderer.graphics.apparelGraphics.Any((x) => { if (pawn.Drawer.renderer.graphics.apparelGraphics.Any((x) => {
if ( if (
x.sourceApparel.def is bondage_gear_def || x.sourceApparel.def is bondage_gear_def
x.sourceApparel.def.defName.ToLower().ContainsAny(new string[] || x.sourceApparel.def.defName.ToLower().ContainsAny(new string[]
{ {
"vibrator", "vibrator",
"piercing", "piercing",
"strapon" "strapon"
}) || })
(RJWPreferenceSettings.sex_wear == RJWPreferenceSettings.Clothing.Headgear && !x.sourceApparel.def.apparel.bodyPartGroups.Contains(BodyPartGroupDefOf.UpperHead))) || x.sourceApparel.def.apparel.bodyPartGroups.Contains(BodyPartGroupDefOf.UpperHead)
)
return false; return false;
Log.Message("[c0ffee] " + x.sourceApparel.def.defName + " does not count as nude for Pawn " + pawn.Name.ToStringSafe());
return true; return true;
})) }))