Don't end mech pregnancies on removal

This commit is contained in:
lutepickle 2022-08-21 12:26:17 -07:00
parent 5e788df794
commit 0b272c1e5b
3 changed files with 3 additions and 1 deletions

Binary file not shown.

View File

@ -627,7 +627,8 @@ namespace RJW_Menstruation
Log.Warning($"Attempted to remove menstruation comp from wrong pawn ({parent.pawn}).");
return;
}
pregnancy?.Miscarry();
if (!(pregnancy is Hediff_MechanoidPregnancy))
pregnancy.Miscarry();
base.CompPostPostRemoved();
}

View File

@ -1,6 +1,7 @@
Version 1.0.7.2
- Fix errors when trying to open dev actions when HAR is not installed
- Fix "error processing breasts" for pawns with vanilla pregnancy (e.g. animals)
- Removing a vagina won't end a mechanoid implant anymore.
Version 1.0.7.1
- Null reference error fix for multiple wombs when one is pregnant.