Cumming inside someone with an IUD adds the full volume.

This commit is contained in:
lutepickle 2022-07-07 12:00:46 -07:00
parent c7a2f0c55d
commit 24e7f93bcc

View file

@ -179,15 +179,6 @@ namespace RJW_Menstruation
return res; return res;
} }
} }
public float CumInFactor
{
get
{
float res = 1.0f;
if (parent.pawn.health.hediffSet.HasHediff(VariousDefOf.RJW_IUD)) res = 0.01f;
return res;
}
}
//make follicular interval into half and double egg lifespan //make follicular interval into half and double egg lifespan
public float CycleFactor public float CycleFactor
{ {
@ -610,10 +601,10 @@ namespace RJW_Menstruation
/// <param name="injectedvolume"></param> /// <param name="injectedvolume"></param>
/// <param name="fertility"></param> /// <param name="fertility"></param>
/// <param name="filthdef"></param> /// <param name="filthdef"></param>
public void CumIn(Pawn pawn, float injectedvolume, float fertility = 1.0f, ThingDef filthdef = null) public void CumIn(Pawn pawn, float volume, float fertility = 1.0f, ThingDef filthdef = null)
{ {
float volume = injectedvolume * CumInFactor;
if (volume <= 0) return; if (volume <= 0) return;
if (parent.pawn.health.hediffSet.HasHediff(VariousDefOf.RJW_IUD)) fertility /= 100f;
float cumd = TotalCumPercent; float cumd = TotalCumPercent;
float tmp = TotalCum + volume; float tmp = TotalCum + volume;
if (tmp > CumCapacity) if (tmp > CumCapacity)
@ -647,7 +638,7 @@ namespace RJW_Menstruation
} }
cumd = TotalCumPercent - cumd; cumd = TotalCumPercent - cumd;
parent.pawn.records.AddTo(VariousDefOf.AmountofCreampied, injectedvolume); parent.pawn.records.AddTo(VariousDefOf.AmountofCreampied, volume);
AfterCumIn(pawn); AfterCumIn(pawn);
AfterFluidIn(cumd); AfterFluidIn(cumd);
} }