reallowed thrusting for non-animating pawns

This commit is contained in:
c0ffee 2021-04-20 12:07:49 -07:00
parent 3efe5bd22a
commit ac6deb9553
3 changed files with 19 additions and 2 deletions

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Manifest> <Manifest>
<identifier>Rimworld-Animations</identifier> <identifier>Rimworld-Animations</identifier>
<version>1.1.1</version> <version>1.1.2</version>
</Manifest> </Manifest>

View file

@ -1,4 +1,5 @@
using HarmonyLib; using HarmonyLib;
using RimWorld;
using rjw; using rjw;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
@ -29,6 +30,22 @@ namespace Rimworld_Animations
__instance.sex_ticks--; __instance.sex_ticks--;
__instance.Orgasm(); __instance.Orgasm();
if (pawn.IsHashIntervalTick(__instance.ticks_between_thrusts))
{
__instance.ChangePsyfocus(pawn, target);
__instance.Animate(pawn, target);
__instance.PlaySexSound();
if (!__instance.isRape)
{
pawn.GainComfortFromCellIfPossible(false);
if (target is Pawn)
{
(target as Pawn).GainComfortFromCellIfPossible(false);
}
}
}
return false; return false;
} }