mirror of
https://gitgud.io/amevarashi/rjw-sexperience-ideology.git
synced 2024-08-15 00:43:19 +00:00
Fixed biotech pregnancy not counting for pregnancy precepts
This commit is contained in:
parent
450c835d2b
commit
b6942e3c10
6 changed files with 18 additions and 8 deletions
|
@ -80,5 +80,18 @@ namespace RJWSexperience.Ideology
|
|||
|
||||
return bestSeenSize;
|
||||
}
|
||||
|
||||
public static bool IsVisiblyPregnant(Pawn pawn)
|
||||
{
|
||||
Hediff pregnancy = PregnancyHelper.GetPregnancy(pawn);
|
||||
|
||||
// Currently RJW does not check Biotech pregnancy
|
||||
if (pregnancy == null && VariousDefOf.PregnantHuman != null)
|
||||
{
|
||||
pregnancy = pawn.health.hediffSet.GetFirstHediffOfDef(HediffDefOf.PregnantHuman);
|
||||
}
|
||||
|
||||
return pregnancy?.Visible == true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue