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"?>
<Manifest>
<identifier>Rimworld-Animations</identifier>
<version>1.1.1</version>
<version>1.1.2</version>
</Manifest>

View file

@ -1,4 +1,5 @@
using HarmonyLib;
using RimWorld;
using rjw;
using System;
using System.Collections.Generic;
@ -29,7 +30,23 @@ namespace Rimworld_Animations
__instance.sex_ticks--;
__instance.Orgasm();
return false;
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 true;