2022-08-10 18:52:32 +00:00
|
|
|
|
using RimWorld;
|
2022-10-14 14:29:11 +00:00
|
|
|
|
using Verse;
|
2022-08-10 18:52:32 +00:00
|
|
|
|
|
2022-10-14 14:29:11 +00:00
|
|
|
|
namespace RJWSexperience.Ideology.PreceptWorkers
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// thought worker for a thought that is active when a certain hediff is present, and who's stage depends on the ether state of the pawn
|
|
|
|
|
/// Shamelessly taken from: https://github.com/Tachyonite/Pawnmorpher/blob/master/Source/Pawnmorphs/Esoteria/Thoughts/ThoughtWorker_EtherHediff.cs
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class ThoughtWorker_Precept_Pregnant_Social : ThoughtWorker_Precept_Social
|
|
|
|
|
{
|
|
|
|
|
/// <summary>Gets the current thought state of the given pawn.</summary>
|
|
|
|
|
/// <param name="p">The pawn for whom the thoughts are generated.</param>
|
|
|
|
|
/// <param name="otherPawn">The pawn about whom the thoughts are generated.</param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
protected override ThoughtState ShouldHaveThought(Pawn p, Pawn otherPawn)
|
|
|
|
|
{
|
2022-10-29 10:23:25 +00:00
|
|
|
|
return otherPawn?.DevelopmentalStage == DevelopmentalStage.Adult &&
|
|
|
|
|
p?.DevelopmentalStage == DevelopmentalStage.Adult &&
|
2022-10-29 11:22:41 +00:00
|
|
|
|
IdeoUtility.IsVisiblyPregnant(otherPawn);
|
2022-10-14 14:29:11 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
2022-08-10 18:52:32 +00:00
|
|
|
|
}
|