mirror of
https://gitgud.io/lutepickle/rjw_menstruation.git
synced 2024-08-14 22:46:52 +00:00
Add checks for ShouldCycle into the birth transpilers
This commit is contained in:
parent
2d1404fcba
commit
afcb7bf7c5
2 changed files with 3 additions and 3 deletions
Binary file not shown.
|
@ -157,7 +157,7 @@ namespace RJW_Menstruation
|
|||
// Easier to work out twins that way
|
||||
|
||||
// From e.g. a vat
|
||||
if (!(birtherThing is Pawn mother) || !xxx.is_human(mother))
|
||||
if (!(birtherThing is Pawn mother) || !xxx.is_human(mother) || !mother.ShouldCycle())
|
||||
return PawnGenerator.GeneratePawn(request);
|
||||
|
||||
// No babies found. Could be an unmodified pregnancy
|
||||
|
@ -200,7 +200,7 @@ namespace RJW_Menstruation
|
|||
{
|
||||
private static Thing ApplyBirthLoop(RitualOutcomePossibility outcome, float quality, Precept_Ritual ritual, List<GeneDef> genes, Pawn geneticMother, Thing birtherThing, Pawn father, Pawn doctor, LordJob_Ritual lordJobRitual, RitualRoleAssignments assignments, bool preventLetter)
|
||||
{
|
||||
if (birtherThing is Pawn mother)
|
||||
if (birtherThing is Pawn mother && mother.ShouldCycle())
|
||||
{
|
||||
HediffComp_PregeneratedBabies comp = mother.health.hediffSet.GetFirstHediff<Hediff_LaborPushing>().TryGetComp<HediffComp_PregeneratedBabies>();
|
||||
if (comp?.HasBaby ?? false)
|
||||
|
@ -256,7 +256,7 @@ namespace RJW_Menstruation
|
|||
{
|
||||
private static Thing ApplyBirthLoop(RitualOutcomePossibility outcome, float quality, Precept_Ritual ritual, List<GeneDef> genes, Pawn geneticMother, Thing birtherThing, Pawn father, Pawn doctor, LordJob_Ritual lordJobRitual, RitualRoleAssignments assignments)
|
||||
{
|
||||
if (birtherThing is Pawn mother)
|
||||
if (birtherThing is Pawn mother && mother.ShouldCycle())
|
||||
{
|
||||
HediffComp_PregeneratedBabies comp = mother.health.hediffSet.GetFirstHediff<Hediff_LaborPushing>().TryGetComp<HediffComp_PregeneratedBabies>();
|
||||
if (comp?.HasBaby ?? false)
|
||||
|
|
Loading…
Reference in a new issue