Don't display cum overlay when stuffed with insect eggs

This commit is contained in:
lutepickle 2023-06-29 15:59:02 -07:00
parent f5a302c272
commit 30a5d84476
2 changed files with 6 additions and 0 deletions

Binary file not shown.

View File

@ -166,6 +166,12 @@ namespace RJW_Menstruation
public static Texture2D GetCumIcon(this HediffComp_Menstruation comp)
{
Pawn pawn = comp.Pawn;
List<Hediff_InsectEgg> insectEggs = new List<Hediff_InsectEgg>();
comp.Pawn.health.hediffSet.GetHediffs(ref insectEggs);
if (!insectEggs.NullOrEmpty() && insectEggs.Sum(hediff => hediff.eggssize) > 1.0f) return null; // same logic as "Stuffed" in GetInsectEggedIcon
string icon = comp.WombTex;
float cumpercent = comp.TotalCumPercent;
if (cumpercent < 0.001f) return ContentFinder<Texture2D>.Get("Womb/Empty", true);