Move PreferGender method to RecordRandomizer

This commit is contained in:
amevarashi 2022-06-17 20:08:28 +05:00
parent 758121ff4c
commit fdd706a998
2 changed files with 12 additions and 15 deletions

View file

@ -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;
}
}
}
}

View file

@ -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;
}
}
}