From ff8be3e9129783e932675a8eff4a2ad091f7b2d1 Mon Sep 17 00:00:00 2001 From: deez-slimes <95513791+deez-slimes@users.noreply.github.com> Date: Fri, 3 Dec 2021 19:18:56 -0800 Subject: [PATCH] Fix SexScore patch - pass by ref. --- RJWSexperience/IdeologyAddon/Ideology/RJW_Patch_Ideo.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/RJWSexperience/IdeologyAddon/Ideology/RJW_Patch_Ideo.cs b/RJWSexperience/IdeologyAddon/Ideology/RJW_Patch_Ideo.cs index 21d665e..412bf27 100644 --- a/RJWSexperience/IdeologyAddon/Ideology/RJW_Patch_Ideo.cs +++ b/RJWSexperience/IdeologyAddon/Ideology/RJW_Patch_Ideo.cs @@ -307,10 +307,10 @@ namespace RJWSexperience.Ideology Ideo ideo = context.Inputs.Initiator.Ideo; - if (ideo != null) PreceptSextype(ideo, context.Inputs.Initiator.GetStatValue(xxx.sex_drive_stat), __result, 0, interaction); + if (ideo != null) PreceptSextype(ideo, context.Inputs.Initiator.GetStatValue(xxx.sex_drive_stat), ref __result, 0, interaction); ideo = context.Inputs.Partner.Ideo; - if (!context.Inputs.IsRape && ideo != null) PreceptSextype(ideo, context.Inputs.Partner.GetStatValue(xxx.sex_drive_stat), __result, 1, interaction); + if (!context.Inputs.IsRape && ideo != null) PreceptSextype(ideo, context.Inputs.Partner.GetStatValue(xxx.sex_drive_stat), ref __result, 1, interaction); } @@ -321,7 +321,7 @@ namespace RJWSexperience.Ideology "Fisting", }; - public static void PreceptSextype(Ideo ideo, float sexdrive, float result, int offset, InteractionWithExtension interaction) + public static void PreceptSextype(Ideo ideo, float sexdrive, ref float result, int offset, InteractionWithExtension interaction) { float mult = 8.0f * Math.Max(0.3f, 1 / Math.Max(0.01f, sexdrive)); if ((interaction.Extension.rjwSextype == "Vaginal")