using RimWorld; using rjw; using Verse; namespace RJWSexperience.Ideology.PreceptWorkers { /// /// 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 /// public class ThoughtWorker_Precept_NonPregnant : ThoughtWorker_Precept { /// Gets the current thought state of the given pawn. /// The pawn for whom the thoughts are generated. /// protected override ThoughtState ShouldHaveThought(Pawn p) { return p?.DevelopmentalStage == DevelopmentalStage.Adult && PregnancyHelper.GetPregnancy(p)?.Visible != true; } } }