mirror of
https://gitgud.io/c0ffeeeeeeee/rimworld-animations.git
synced 2024-08-15 00:43:45 +00:00
compatibility w/ rjw 4.5.1
This commit is contained in:
parent
15b7e76f43
commit
54381c7655
4 changed files with 27 additions and 22 deletions
10
.gitignore
vendored
10
.gitignore
vendored
|
@ -338,3 +338,13 @@ ASALocalRun/
|
|||
|
||||
# BeatPulse healthcheck temp database
|
||||
healthchecksdb
|
||||
/Source/Patches/PawnAnimationPatches/HarmonyPatch_Pawn_DrawTracker.cs
|
||||
/Source/Patches/PawnAnimationPatches/HarmonyPatch_PawnRotation.cs
|
||||
/Source/Patches/PawnAnimationPatches/HarmonyPatch_PawnRenderer.cs
|
||||
/Source/Patches/OtherModPatches/HarmonyPatch_ShowHairWithHats.cs
|
||||
/Source/Patches/OtherModPatches/HarmonyPatch_FacialAnimation.cs
|
||||
/Source/Patches/OtherModPatches/HarmonyPatch_DontShaveYourHead.cs
|
||||
/Source/Patches/OtherModPatches/HarmonyPatch_CSL.cs
|
||||
/Source/Patches/OtherModPatches/HarmonyPatch_AlienRace.cs
|
||||
/Source/Patches/ThingAnimationPatches/HarmonyPatch_ThingDrawAt.cs
|
||||
/Defs/AnimationDefs/Animations_SexToys.xml
|
||||
|
|
Binary file not shown.
|
@ -121,8 +121,6 @@ namespace Rimworld_Animations {
|
|||
//they'll just do the thrusting anim
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -37,30 +37,27 @@ namespace Rimworld_Animations {
|
|||
if (pawn.mindState?.duty?.def == DutyDefOf.TravelOrLeave) {
|
||||
// TODO: Some guest pawns keep the TravelOrLeave duty the whole time, I think the ones assigned to guard the pack animals.
|
||||
// That's probably ok, though it wasn't the intention.
|
||||
if (RJWSettings.DebugLogJoinInBed) Log.Message($"[RJW] JoinInBed.TryGiveJob:({xxx.get_pawnname(pawn)}): has TravelOrLeave, no time for lovin!");
|
||||
if (RJWSettings.DebugLogJoinInBed) ModLog.Message($"JoinInBed.TryGiveJob:({xxx.get_pawnname(pawn)}): has TravelOrLeave, no time for lovin [ANIM JOBGIVER]!");
|
||||
return false;
|
||||
}
|
||||
|
||||
if (pawn.CurJob == null || pawn.CurJob.def == JobDefOf.LayDown) {
|
||||
//--Log.Message(" checking pawn and abilities");
|
||||
if (xxx.can_fuck(pawn) || xxx.can_be_fucked(pawn)) {
|
||||
//--Log.Message(" finding partner");
|
||||
Pawn partner = JobGiver_JoinInBed.find_pawn_to_fuck(pawn, pawn.Map);
|
||||
if ((pawn.CurJob == null || pawn.CurJob.def == JobDefOf.LayDown) && CasualSex_Helper.CanHaveSex(pawn)) {
|
||||
//--Log.Message(" finding partner");
|
||||
Pawn partner = CasualSex_Helper.find_partner(pawn, pawn.Map, bedsex: true);
|
||||
|
||||
//--Log.Message(" checking partner");
|
||||
if (partner == null)
|
||||
return false;
|
||||
|
||||
// Can never be null, since find checks for bed.
|
||||
Building_Bed bed = partner.CurrentBed();
|
||||
|
||||
// Interrupt current job.
|
||||
if (pawn.CurJob != null && pawn.jobs.curDriver != null)
|
||||
pawn.jobs.curDriver.EndJobWith(JobCondition.InterruptForced);
|
||||
|
||||
__result = JobMaker.MakeJob(DefDatabase<JobDef>.GetNamed("JoinInBedAnimation", true), partner, bed);
|
||||
//--Log.Message(" checking partner");
|
||||
if (partner == null)
|
||||
return false;
|
||||
}
|
||||
|
||||
// Can never be null, since find checks for bed.
|
||||
Building_Bed bed = partner.CurrentBed();
|
||||
|
||||
// Interrupt current job.
|
||||
if (pawn.CurJob != null && pawn.jobs.curDriver != null)
|
||||
pawn.jobs.curDriver.EndJobWith(JobCondition.InterruptForced);
|
||||
|
||||
__result = JobMaker.MakeJob(DefDatabase<JobDef>.GetNamed("JoinInBedAnimation", true), partner, bed);
|
||||
return false;
|
||||
}
|
||||
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue