rjw-whoring/1.3/Source/Mod/ThinkTreeNodes/ThinkNode_ConditionalWhore.cs
2022-07-16 22:50:21 +03:00

25 lines
No EOL
451 B
C#

using Verse;
using Verse.AI;
using RimWorld;
using rjw;
namespace rjwwhoring
{
/// <summary>
/// Whore/prisoner look for customers
/// </summary>
public class ThinkNode_ConditionalWhore : ThinkNode_Conditional
{
protected override bool Satisfied(Pawn p)
{
// No animal whorin' for now.
if (xxx.is_animal(p))
return false;
if (!InteractionUtility.CanInitiateInteraction(p))
return false;
return xxx.is_whore(p);
}
}
}