From fdd706a998e44cd563ecc7036517b027250d48d7 Mon Sep 17 00:00:00 2001 From: amevarashi Date: Fri, 17 Jun 2022 20:08:28 +0500 Subject: [PATCH] Move PreferGender method to RecordRandomizer --- .../ExtensionMethods/PawnExtensions.cs | 14 -------------- .../RJWSexperience/SexHistory/RecordRandomizer.cs | 13 ++++++++++++- 2 files changed, 12 insertions(+), 15 deletions(-) diff --git a/RJWSexperience/RJWSexperience/ExtensionMethods/PawnExtensions.cs b/RJWSexperience/RJWSexperience/ExtensionMethods/PawnExtensions.cs index bd1aa11..1c6b46e 100644 --- a/RJWSexperience/RJWSexperience/ExtensionMethods/PawnExtensions.cs +++ b/RJWSexperience/RJWSexperience/ExtensionMethods/PawnExtensions.cs @@ -105,19 +105,5 @@ namespace RJWSexperience } } } - - public static Gender PreferGender(this Pawn pawn) - { - if (pawn.gender == Gender.Male) - { - if (xxx.is_homosexual(pawn)) return Gender.Male; - else return Gender.Female; - } - else - { - if (xxx.is_homosexual(pawn)) return Gender.Female; - else return Gender.Male; - } - } } } diff --git a/RJWSexperience/RJWSexperience/SexHistory/RecordRandomizer.cs b/RJWSexperience/RJWSexperience/SexHistory/RecordRandomizer.cs index 34e15a6..c1b055b 100644 --- a/RJWSexperience/RJWSexperience/SexHistory/RecordRandomizer.cs +++ b/RJWSexperience/RJWSexperience/SexHistory/RecordRandomizer.cs @@ -167,7 +167,7 @@ namespace RJWSexperience.SexHistory RJWPreferenceSettings.scissoring + RJWPreferenceSettings.fisting + RJWPreferenceSettings.sixtynine; - Gender prefer = pawn.PreferGender(); + Gender prefer = PreferredGender(pawn); int sex = (int)(totalsex * RJWPreferenceSettings.vaginal / totalweight); totalsex -= sex; pawn.records.AddTo(VariousDefOf.VaginalSexCount, sex); @@ -232,5 +232,16 @@ namespace RJWSexperience.SexHistory if (prefer == Gender.Male) pawn.records.AddTo(VariousDefOf.BlowjobCount, totalsex); else pawn.records.AddTo(VariousDefOf.CunnilingusCount, totalsex); } + + private static Gender PreferredGender(Pawn pawn) + { + if (xxx.is_homosexual(pawn)) + return pawn.gender; + + if (pawn.gender == Gender.Male) + return Gender.Female; + else + return Gender.Male; + } } }