Change log v 2.0.1
- Fixed issue with a hand animation calling a missing method
- Fixed errored that was triggering at the end of sex
- Dependency on Humanoid Alien Race is now listed and enforced in the mod load screen
- Made XML patching more robust
This commit is contained in:
AbstractConcept 2023-02-06 10:15:30 -06:00
parent ae95e34137
commit 767317773b
15 changed files with 157 additions and 127 deletions

View file

@ -11,7 +11,7 @@ using Verse;
namespace Rimworld_Animations_Patch
{
public class Motion_StrokeGenitalsUpAndDown_FacingNS : HandMotion
public class StrokeGenitalsUpAndDown_FacingNS : HandMotion
{
public override Vector3 GetHandPosition(Pawn pawn, HandAnimationData handAnimationData, float baseAngle)
{

View file

@ -320,12 +320,13 @@ namespace Rimworld_Animations_Patch
// Clear all partners out when sex ends to prevent issues with threesome animations
public static void Postfix(ref JobDriver_SexBaseInitiator __instance)
{
if (__instance.Partner != null && __instance?.Partner?.jobs?.curDriver != null && __instance.Partner.Dead == false && __instance.Partner?.jobs.curDriver is JobDriver_SexBaseReciever)
if (__instance.Partner != null &&__instance.Partner.Dead == false && __instance.Partner?.jobs?.curDriver != null && __instance.Partner?.jobs?.curDriver is JobDriver_SexBaseReciever)
{
foreach (Pawn participant in (__instance.Partner?.jobs.curDriver as JobDriver_SexBaseReciever).parteners)
{ participant.jobs.EndCurrentJob(JobCondition.Succeeded, false, true); }
(__instance.Partner?.jobs.curDriver as JobDriver_SexBaseReciever).parteners.Clear();
{
if (__instance.pawn != participant)
{ participant.jobs.EndCurrentJob(JobCondition.Succeeded, false, true); }
}
}
}
}