mirror of
https://gitgud.io/c0ffeeeeeeee/rjw-events.git
synced 2024-08-14 23:57:42 +00:00
first commit
This commit is contained in:
parent
1c82248286
commit
6d1a218b2e
23 changed files with 836 additions and 0 deletions
39
Source/ThinkNodes/ThinkNode_ConditionalNude.cs
Normal file
39
Source/ThinkNodes/ThinkNode_ConditionalNude.cs
Normal file
|
@ -0,0 +1,39 @@
|
|||
using RimWorld;
|
||||
using rjw;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Verse;
|
||||
using Verse.AI;
|
||||
|
||||
namespace RJW_Events
|
||||
{
|
||||
public class ThinkNode_ConditionalNude : ThinkNode_Conditional
|
||||
{
|
||||
protected override bool Satisfied(Pawn pawn)
|
||||
{
|
||||
//if pawn is rendering apparel they shouldn't be,
|
||||
if (pawn.Drawer.renderer.graphics.apparelGraphics.Any((ApparelGraphicRecord x) => {
|
||||
|
||||
if (x.sourceApparel.def.defName.ToLower().ContainsAny(new string[]
|
||||
{
|
||||
"vibrator",
|
||||
"piercing",
|
||||
"strapon"
|
||||
}) || (RJWPreferenceSettings.sex_wear == RJWPreferenceSettings.Clothing.Headgear && !x.sourceApparel.def.apparel.bodyPartGroups.Contains(BodyPartGroupDefOf.UpperHead)))
|
||||
return false;
|
||||
|
||||
return true;
|
||||
|
||||
}))
|
||||
{
|
||||
//they aren't nude
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue