mirror of
https://gitgud.io/Ed86/rjw-whoring.git
synced 2024-08-15 00:03:25 +00:00
25 lines
No EOL
451 B
C#
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);
|
|
}
|
|
}
|
|
} |