coffees-rjw-ideology-addons/CRIALactation/Source/Thoughts/ThoughtWorker_Precept_Lactating_Essential.cs

39 lines
836 B
C#
Raw Normal View History

2021-07-26 04:06:00 +00:00
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Verse;
using RimWorld;
using rjw;
using Milk;
using UnityEngine;
namespace CRIALactation
{
public class ThoughtWorker_Precept_Lactating_Essential : ThoughtWorker_Precept
{
protected override ThoughtState ShouldHaveThought(Pawn p)
{
if (ThoughtUtility.ThoughtNullified(p, this.def))
{
return false;
}
if (!Genital_Helper.has_breasts(p) || Genital_Helper.has_male_breasts(p))
{
return false;
}
if(LactationUtility.IsLactating(p))
{
return ThoughtState.ActiveAtStage(0);
}
return ThoughtState.ActiveAtStage(1);
}
}
}