better futa ordering for anims

This commit is contained in:
Platinum 2020-07-11 14:20:12 -07:00
parent 94aca1c46b
commit 00d8a0be4b
3 changed files with 3 additions and 3 deletions

View File

@ -19,11 +19,11 @@ namespace Rimworld_Animations {
//aggressors last
participants = participants.OrderBy(p => p.jobs.curDriver is rjw.JobDriver_SexBaseInitiator).ToList();
participants = participants.OrderByDescending(p => rjw.GenderHelper.GetSex(p) == rjw.GenderHelper.Sex.futa).ToList();
//pawns that can fuck last
participants = participants.OrderBy(p => rjw.xxx.can_fuck(p)).ToList();
participants = participants.OrderByDescending(p => rjw.GenderHelper.GetSex(p) == rjw.GenderHelper.Sex.futa).ToList();
List<Pawn> localParticipants = new List<Pawn>(participants);

View File

@ -29,7 +29,7 @@ namespace Rimworld_Animations {
__instance.Animate(pawn, pawn2);
if (!AnimationSettings.soundOverride || !pawn.TryGetComp<CompBodyAnimator>().isAnimating) {
if (!AnimationSettings.soundOverride || pawn.TryGetComp<CompBodyAnimator>() == null || !pawn.TryGetComp<CompBodyAnimator>().isAnimating) {
__instance.PlaySexSound();
}