Don't show the implanted egg icon when it's a mechanoid pregnancy

This commit is contained in:
lutepickle 2022-06-21 21:00:37 -07:00
parent fcea8dc0a2
commit f021316869
3 changed files with 3 additions and 2 deletions

Binary file not shown.

View file

@ -157,8 +157,8 @@ namespace RJW_Menstruation
} }
public static Texture2D GetEggIcon(this HediffComp_Menstruation comp, bool includeOvary) public static Texture2D GetEggIcon(this HediffComp_Menstruation comp, bool includeOvary)
{ {
if (comp.parent.pawn.IsPregnant(Configurations.InfoDetail != Configurations.DetailLevel.All)) if (comp.parent.pawn.IsPregnant(Configurations.InfoDetail != Configurations.DetailLevel.All) && !(PregnancyHelper.GetPregnancy(comp.parent.pawn) is Hediff_MechanoidPregnancy))
{ {
if (comp.parent.pawn.GetPregnancyProgress() < 0.2f) return ContentFinder<Texture2D>.Get("Eggs/Egg_Implanted00", true); if (comp.parent.pawn.GetPregnancyProgress() < 0.2f) return ContentFinder<Texture2D>.Get("Eggs/Egg_Implanted00", true);
else return ContentFinder<Texture2D>.Get("Womb/Empty", true); else return ContentFinder<Texture2D>.Get("Womb/Empty", true);
} }

View file

@ -2,6 +2,7 @@ Version 1.0.6.6
- The womb tick timing is now more consistent across a save and load, and also spread out across pawns. - The womb tick timing is now more consistent across a save and load, and also spread out across pawns.
- Fix error when an egg fertilized by a nonexistent/garbage collected pawn (e.g. in an NPC's womb) tries to implant. - Fix error when an egg fertilized by a nonexistent/garbage collected pawn (e.g. in an NPC's womb) tries to implant.
- Another hybrid fix for invalid races. - Another hybrid fix for invalid races.
- Fix an implanted egg icon showing for mechanoid pregnancies.
Version 1.0.6.5 Version 1.0.6.5
- Handle climacteric induced ovulators a bit better. - Handle climacteric induced ovulators a bit better.