Revert "removed redundant code"

This reverts commit f084fa0df3.
This commit is contained in:
c0ffee 2021-10-27 10:16:18 -07:00
parent f084fa0df3
commit 05efdf0c10
2 changed files with 21 additions and 0 deletions

View file

@ -13,6 +13,27 @@ using Verse.AI;
namespace Rimworld_Animations
{
[HarmonyPatch(typeof(Bed_Utility), "in_same_bed")]
public static class HarmonyPatch_JobDriver_InSameBedPatch
{
public static bool Prefix(Pawn partner, ref bool __result)
{
if(partner != null && partner.CurJobDef == xxx.casual_sex)
{
__result = true;
return false;
}
return true;
}
}
[HarmonyPatch(typeof(JobDriver_JoinInBed), "MakeNewToils")]
public static class HarmonyPatch_JobDriver_JoinInBed
{