diff --git a/1.3/Assemblies/RJW_Menstruation.dll b/1.3/Assemblies/RJW_Menstruation.dll index 840698a..ee61ba1 100644 Binary files a/1.3/Assemblies/RJW_Menstruation.dll and b/1.3/Assemblies/RJW_Menstruation.dll differ diff --git a/1.3/source/RJW_Menstruation/RJW_Menstruation/Cum.cs b/1.3/source/RJW_Menstruation/RJW_Menstruation/Cum.cs index 35fcbcf..f50ddd4 100644 --- a/1.3/source/RJW_Menstruation/RJW_Menstruation/Cum.cs +++ b/1.3/source/RJW_Menstruation/RJW_Menstruation/Cum.cs @@ -1,6 +1,7 @@ using RimWorld; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; using System.Text; using UnityEngine; using Verse; @@ -201,9 +202,9 @@ namespace RJW_Menstruation return false; } - - public float DismishNatural(float leakfactor, float antisperm = 0.0f) + public float DismishNatural(float leakfactor, HediffComp_Menstruation comp, float antisperm = 0.0f) { + // comp is used for Hydrogen's RJW Muscle Injury float totalleak = volume; volume *= Math.Max(0, (1 - (Configurations.CumDecayRatio * (1 - DecayResist)) * leakfactor)); fertility *= Math.Max(0, 1 - (Configurations.CumFertilityDecayRatio * (1 - DecayResist) + antisperm)); diff --git a/1.3/source/RJW_Menstruation/RJW_Menstruation/HediffComps/HediffComp_Menstruation.cs b/1.3/source/RJW_Menstruation/RJW_Menstruation/HediffComps/HediffComp_Menstruation.cs index 244cd94..56d6fed 100644 --- a/1.3/source/RJW_Menstruation/RJW_Menstruation/HediffComps/HediffComp_Menstruation.cs +++ b/1.3/source/RJW_Menstruation/RJW_Menstruation/HediffComps/HediffComp_Menstruation.cs @@ -898,7 +898,7 @@ namespace RJW_Menstruation foreach (Cum cum in cums) { cum.CumEffects(Pawn); - float vd = cum.DismishNatural(leakfactor, antisperm); + float vd = cum.DismishNatural(leakfactor, this, antisperm); cum.MakeThinner(Configurations.CycleAcceleration); totalleak += AbsorbCum(vd, absorber); string tmp = "FilthLabelWithSource".Translate(cum.FilthDef.label, cum.pawn?.LabelShort ?? "Unknown", 1.ToString());