mirror of
https://gitgud.io/lutepickle/rjw_menstruation.git
synced 2024-08-14 22:46:52 +00:00
Fix CumIn of 0 volume (e.g. setting bleed rate to 0 ml/h)
This commit is contained in:
parent
565f19e5e3
commit
0f9bfcd302
4 changed files with 2 additions and 0 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -582,6 +582,7 @@ namespace RJW_Menstruation
|
||||||
public void CumIn(Pawn pawn, float injectedvolume, float fertility = 1.0f, ThingDef filthdef = null)
|
public void CumIn(Pawn pawn, float injectedvolume, float fertility = 1.0f, ThingDef filthdef = null)
|
||||||
{
|
{
|
||||||
float volume = injectedvolume * CumInFactor;
|
float volume = injectedvolume * CumInFactor;
|
||||||
|
if (volume <= 0) return;
|
||||||
float cumd = TotalCumPercent;
|
float cumd = TotalCumPercent;
|
||||||
float tmp = TotalCum + volume;
|
float tmp = TotalCum + volume;
|
||||||
if (tmp > CumCapacity)
|
if (tmp > CumCapacity)
|
||||||
|
@ -630,6 +631,7 @@ namespace RJW_Menstruation
|
||||||
/// <param name="filthdef"></param>
|
/// <param name="filthdef"></param>
|
||||||
public void CumIn(Pawn pawn, float volume, string notcumlabel, float decayresist = 0, ThingDef filthdef = null)
|
public void CumIn(Pawn pawn, float volume, string notcumlabel, float decayresist = 0, ThingDef filthdef = null)
|
||||||
{
|
{
|
||||||
|
if (volume <= 0) return;
|
||||||
float tmp = TotalCum + volume;
|
float tmp = TotalCum + volume;
|
||||||
float cumd = TotalCumPercent;
|
float cumd = TotalCumPercent;
|
||||||
if (tmp > CumCapacity)
|
if (tmp > CumCapacity)
|
||||||
|
|
Loading…
Reference in a new issue