mirror of
https://gitgud.io/AbstractConcept/rimworld-animations-patch.git
synced 2024-08-15 00:43:27 +00:00
v2.0.1
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:
parent
ae95e34137
commit
767317773b
15 changed files with 157 additions and 127 deletions
Binary file not shown.
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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); }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Binary file not shown.
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue