Pick up pregnancies on embryo implantation

This commit is contained in:
lutepickle 2022-11-10 21:50:31 -08:00
parent a8793765c5
commit 8b7902bc8a
4 changed files with 11 additions and 0 deletions

Binary file not shown.

View file

@ -98,4 +98,14 @@ namespace RJW_Menstruation
mostEggs.ovarypower--; mostEggs.ovarypower--;
} }
} }
[HarmonyPatch(typeof(Recipe_ImplantEmbryo), nameof(Recipe_ImplantEmbryo.ApplyOnPawn))]
public class ImplantEmbryo_ApplyOnPawn_Patch
{
public static void PostFix(Pawn pawn)
{
foreach (HediffComp_Menstruation comp in pawn.GetMenstruationComps())
comp.TakeLoosePregnancy();
}
}
} }

View file

@ -1,6 +1,7 @@
Version 1.0.8.2 Version 1.0.8.2
- Updated race support patches for new and removed vaginas. - Updated race support patches for new and removed vaginas.
- The Biotech extract ovum operation will now remove an egg from a pawn's ovaries. - The Biotech extract ovum operation will now remove an egg from a pawn's ovaries.
- A pawn's womb should now recognize an implanted embryo.
Version 1.0.8.1 Version 1.0.8.1
- Added the option for humans to start Biotech pregnancies if the DLC is enabled. If set, non-humans will use the old multiple pregnancy instead. - Added the option for humans to start Biotech pregnancies if the DLC is enabled. If set, non-humans will use the old multiple pregnancy instead.