Males with sterile genes cum 0 fertility sperm

This commit is contained in:
lutepickle 2022-11-04 10:44:33 -07:00
parent 0647d25fa2
commit ba6f1886d1

View file

@ -1,4 +1,5 @@
using HarmonyLib; using HarmonyLib;
using RimWorld;
using rjw; using rjw;
using rjw.Modules.Interactions.Enums; using rjw.Modules.Interactions.Enums;
using rjw.Modules.Interactions.Objects; using rjw.Modules.Interactions.Objects;
@ -42,7 +43,7 @@ namespace RJW_Menstruation
} }
else if (Genital_Helper.has_ovipositorM(pawn, pawnparts)) else if (Genital_Helper.has_ovipositorM(pawn, pawnparts))
{ {
comp.CumIn(pawn, Rand.Range(0.75f, 4.5f) * pawn.BodySize, 1.0f); comp.CumIn(pawn, Rand.Range(0.75f, 4.5f) * pawn.BodySize, partner.SterileGenes() ? 0.0f : 1.0f);
} }
else comp.CumIn(pawn, pawn.GetCumVolume(pawnparts), 0); else comp.CumIn(pawn, pawn.GetCumVolume(pawnparts), 0);
@ -114,7 +115,7 @@ namespace RJW_Menstruation
comp.CumIn(pawn, pawn.GetCumVolume(), 0); comp.CumIn(pawn, pawn.GetCumVolume(), 0);
return false; return false;
} }
else comp.CumIn(pawn, pawn.GetCumVolume(), pawn.health.capacities.GetLevel(xxx.reproduction)); else comp.CumIn(pawn, pawn.GetCumVolume(), pawn.SterileGenes() ? 0.0f : pawn.health.capacities.GetLevel(xxx.reproduction));
return false; return false;
} }
} }