New precepts should not add thoughts to children

This commit is contained in:
amevarashi 2022-10-29 15:23:25 +05:00
parent d483924c47
commit bf7f6a29fb
6 changed files with 12 additions and 6 deletions

View file

@ -16,7 +16,9 @@ namespace RJWSexperience.Ideology.PreceptWorkers
/// <returns></returns>
protected override ThoughtState ShouldHaveThought(Pawn p, Pawn otherPawn)
{
return PregnancyHelper.GetPregnancy(otherPawn)?.Visible == true;
return otherPawn?.DevelopmentalStage == DevelopmentalStage.Adult &&
p?.DevelopmentalStage == DevelopmentalStage.Adult &&
PregnancyHelper.GetPregnancy(otherPawn)?.Visible == true;
}
}
}