mirror of
https://gitgud.io/c0ffeeeeeeee/rimworld-animations.git
synced 2024-08-15 00:43:45 +00:00
parent
f084fa0df3
commit
05efdf0c10
2 changed files with 21 additions and 0 deletions
Binary file not shown.
|
@ -13,6 +13,27 @@ using Verse.AI;
|
||||||
namespace Rimworld_Animations
|
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")]
|
[HarmonyPatch(typeof(JobDriver_JoinInBed), "MakeNewToils")]
|
||||||
public static class HarmonyPatch_JobDriver_JoinInBed
|
public static class HarmonyPatch_JobDriver_JoinInBed
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue