mirror of
https://github.com/amevarashi/RJW-Sexperience.git
synced 2024-08-14 23:54:08 +00:00
Move PreferGender method to RecordRandomizer
This commit is contained in:
parent
758121ff4c
commit
fdd706a998
2 changed files with 12 additions and 15 deletions
|
@ -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;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -167,7 +167,7 @@ namespace RJWSexperience.SexHistory
|
||||||
RJWPreferenceSettings.scissoring +
|
RJWPreferenceSettings.scissoring +
|
||||||
RJWPreferenceSettings.fisting +
|
RJWPreferenceSettings.fisting +
|
||||||
RJWPreferenceSettings.sixtynine;
|
RJWPreferenceSettings.sixtynine;
|
||||||
Gender prefer = pawn.PreferGender();
|
Gender prefer = PreferredGender(pawn);
|
||||||
int sex = (int)(totalsex * RJWPreferenceSettings.vaginal / totalweight);
|
int sex = (int)(totalsex * RJWPreferenceSettings.vaginal / totalweight);
|
||||||
totalsex -= sex;
|
totalsex -= sex;
|
||||||
pawn.records.AddTo(VariousDefOf.VaginalSexCount, sex);
|
pawn.records.AddTo(VariousDefOf.VaginalSexCount, sex);
|
||||||
|
@ -232,5 +232,16 @@ namespace RJWSexperience.SexHistory
|
||||||
if (prefer == Gender.Male) pawn.records.AddTo(VariousDefOf.BlowjobCount, totalsex);
|
if (prefer == Gender.Male) pawn.records.AddTo(VariousDefOf.BlowjobCount, totalsex);
|
||||||
else pawn.records.AddTo(VariousDefOf.CunnilingusCount, 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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue