2020-04-11 05:03:25 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using HarmonyLib;
|
|
|
|
|
using RimWorld;
|
|
|
|
|
using Verse;
|
|
|
|
|
using rjw;
|
|
|
|
|
using Verse.AI;
|
|
|
|
|
|
|
|
|
|
namespace Rimworld_Animations {
|
|
|
|
|
|
|
|
|
|
[HarmonyPatch(typeof(JobGiver_DoLovin), "TryGiveJob")]
|
|
|
|
|
public static class HarmonyPatch_DoLovinAnimationPatch {
|
|
|
|
|
|
|
|
|
|
public static void Postfix(ref Pawn pawn, ref Job __result) {
|
|
|
|
|
|
|
|
|
|
if(__result != null) {
|
|
|
|
|
Pawn partnerInMyBed = LovePartnerRelationUtility.GetPartnerInMyBed(pawn);
|
2020-04-13 05:57:39 +00:00
|
|
|
|
RestUtility.WakeUp(pawn);
|
2020-04-11 05:03:25 +00:00
|
|
|
|
__result = JobMaker.MakeJob(DefDatabase<JobDef>.GetNamed("JoinInBedAnimation", true), partnerInMyBed, partnerInMyBed.CurrentBed());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|