diff --git a/RJWSexperience/RJWSexperience/Patches/RJW_Patch.cs b/RJWSexperience/RJWSexperience/Patches/RJW_Patch.cs index 5e17c81..53c7502 100644 --- a/RJWSexperience/RJWSexperience/Patches/RJW_Patch.cs +++ b/RJWSexperience/RJWSexperience/Patches/RJW_Patch.cs @@ -72,25 +72,25 @@ namespace RJWSexperience { xxx.rjwSextype sextype = props.sexType; - bool sexFillsCumbuckets = - // Base: Fill Cumbuckets on Masturbation. Having no partner means it must be masturbation too - sextype == xxx.rjwSextype.Masturbation || props.partner == null - // Depending on configuration, also fill cumbuckets when certain sextypes are matched - || (SexperienceMod.Settings.SexCanFillBuckets && (sextype == xxx.rjwSextype.Boobjob || sextype == xxx.rjwSextype.Footjob || sextype == xxx.rjwSextype.Handjob)); + bool sexFillsCumbuckets = + // Base: Fill Cumbuckets on Masturbation. Having no partner means it must be masturbation too + sextype == xxx.rjwSextype.Masturbation || props.partner == null + // Depending on configuration, also fill cumbuckets when certain sextypes are matched + || (SexperienceMod.Settings.SexCanFillBuckets && (sextype == xxx.rjwSextype.Boobjob || sextype == xxx.rjwSextype.Footjob || sextype == xxx.rjwSextype.Handjob)); - if (sexFillsCumbuckets) - { - IEnumerable buckets = props.pawn.GetAdjacentBuildings(); + if (sexFillsCumbuckets) + { + IEnumerable buckets = props.pawn.GetAdjacentBuildings(); - if (buckets?.EnumerableCount() > 0) - { - var initialCum = CumUtility.GetCumVolume(props.pawn); - foreach (Building_CumBucket bucket in buckets) - { + if (buckets?.EnumerableCount() > 0) + { + var initialCum = CumUtility.GetCumVolume(props.pawn); + foreach (Building_CumBucket bucket in buckets) + { bucket.AddCum(initialCum / buckets.EnumerableCount()); - } - } - } + } + } + } } }