Fix CumIn of 0 volume (e.g. setting bleed rate to 0 ml/h)

This commit is contained in:
lutepickle 2022-04-17 19:16:15 -07:00
parent 565f19e5e3
commit 0f9bfcd302
4 changed files with 2 additions and 0 deletions

Binary file not shown.

View file

@ -582,6 +582,7 @@ namespace RJW_Menstruation
public void CumIn(Pawn pawn, float injectedvolume, float fertility = 1.0f, ThingDef filthdef = null)
{
float volume = injectedvolume * CumInFactor;
if (volume <= 0) return;
float cumd = TotalCumPercent;
float tmp = TotalCum + volume;
if (tmp > CumCapacity)
@ -630,6 +631,7 @@ namespace RJW_Menstruation
/// <param name="filthdef"></param>
public void CumIn(Pawn pawn, float volume, string notcumlabel, float decayresist = 0, ThingDef filthdef = null)
{
if (volume <= 0) return;
float tmp = TotalCum + volume;
float cumd = TotalCumPercent;
if (tmp > CumCapacity)