Don't display cum overlay when stuffed with insect eggs
This commit is contained in:
parent
f5a302c272
commit
30a5d84476
Binary file not shown.
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue