mirror of
https://gitgud.io/c0ffeeeeeeee/rimworld-animations.git
synced 2024-08-15 00:43:45 +00:00
commit
This commit is contained in:
parent
74a34b6f8d
commit
55ae1c5d10
29 changed files with 1387 additions and 28 deletions
29
Source/Patches/rjwPatches/HarmonyPatch_WorkGiverSex.cs
Normal file
29
Source/Patches/rjwPatches/HarmonyPatch_WorkGiverSex.cs
Normal file
|
@ -0,0 +1,29 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using rjw;
|
||||
using HarmonyLib;
|
||||
using Verse;
|
||||
using RimWorld;
|
||||
using Verse.AI;
|
||||
|
||||
namespace Rimworld_Animations {
|
||||
|
||||
[HarmonyPatch(typeof(WorkGiver_Sex), "JobOnThing")]
|
||||
public static class HarmonyPatch_WorkGiverSex {
|
||||
|
||||
public static bool Prefix(ref Job __result, ref Thing t) {
|
||||
|
||||
Building_Bed bed = RestUtility.CurrentBed(t as Pawn);
|
||||
if (bed == null) {
|
||||
return false;
|
||||
}
|
||||
__result = JobMaker.MakeJob(DefDatabase<JobDef>.GetNamed("JoinInBedAnimation", true), t as Pawn, bed);
|
||||
return false;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue