mirror of
				https://github.com/amevarashi/RJW-Sexperience.git
				synced 2024-08-14 23:54:08 +00:00 
			
		
		
		
	Merge pull request #1 from deez-slimes/sex-score-fix
Fix SexScore patch - pass by ref.
This commit is contained in:
		
						commit
						5cb1bcd9c0
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		| 
						 | 
					@ -307,10 +307,10 @@ namespace RJWSexperience.Ideology
 | 
				
			||||||
            
 | 
					            
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            Ideo ideo = context.Inputs.Initiator.Ideo;
 | 
					            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;
 | 
					            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",
 | 
					            "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));
 | 
					            float mult = 8.0f * Math.Max(0.3f, 1 / Math.Max(0.01f, sexdrive));
 | 
				
			||||||
            if ((interaction.Extension.rjwSextype == "Vaginal")
 | 
					            if ((interaction.Extension.rjwSextype == "Vaginal")
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue