mirror of
https://gitgud.io/c0ffeeeeeeee/rimworld-animations.git
synced 2024-08-15 00:43:45 +00:00
Compare commits
33 commits
d0a217ad12
...
8fa618e9c6
Author | SHA1 | Date | |
---|---|---|---|
|
8fa618e9c6 | ||
|
770b10e963 | ||
|
4cd35051ee | ||
|
1b13aa267c | ||
|
b61600bb0e | ||
|
58072acc32 | ||
|
0d8d7c256e | ||
|
d2121683ad | ||
|
d713ada085 | ||
|
6127fe964a | ||
|
31e2df8c00 | ||
|
be8510cb92 | ||
|
218e4426c8 | ||
|
0f13261545 | ||
|
792eb26345 | ||
|
9f65c207e3 | ||
|
26f7e77d4a | ||
|
d9121c0ae1 | ||
|
3e1bd7607c | ||
|
eb325a8dce | ||
|
b5b4073b08 | ||
|
7188403c1c | ||
|
3430dfc996 | ||
|
34f51e9008 | ||
|
96648de258 | ||
|
71e6cc6694 | ||
|
94f931be9d | ||
|
d7c17027e6 | ||
|
c1d4af9b72 | ||
|
3bbbd1e1cb | ||
|
80d6af526c | ||
|
c47bd58f55 | ||
|
e0ffbd110d |
8 changed files with 22 additions and 13 deletions
Binary file not shown.
|
@ -20,6 +20,9 @@
|
|||
</defNames>
|
||||
<isFucking>true</isFucking>
|
||||
<initiator>true</initiator>
|
||||
<bodyTypeOffset>
|
||||
<Hulk>(0, 0.2)</Hulk>
|
||||
</bodyTypeOffset>
|
||||
</li>
|
||||
<li>
|
||||
<defNames>
|
||||
|
@ -27,6 +30,9 @@
|
|||
</defNames>
|
||||
<isFucking>true</isFucking>
|
||||
<initiator>true</initiator>
|
||||
<bodyTypeOffset>
|
||||
<Hulk>(0, 0.2)</Hulk>
|
||||
</bodyTypeOffset>
|
||||
</li>
|
||||
</actors>
|
||||
|
||||
|
|
|
@ -34,10 +34,6 @@
|
|||
<Reference Include="0Harmony">
|
||||
<HintPath>..\..\..\..\workshop\content\294100\2009463077\Current\Assemblies\0Harmony.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="AlienRace">
|
||||
<HintPath>..\..\..\..\workshop\content\294100\839005762\1.1\Assemblies\AlienRace.dll</HintPath>
|
||||
<Private>False</Private>
|
||||
</Reference>
|
||||
<Reference Include="Assembly-CSharp, Version=1.1.7397.36407, Culture=neutral, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\RimWorldWin64_Data\Managed\Assembly-CSharp.dll</HintPath>
|
||||
|
|
|
@ -288,5 +288,9 @@ namespace Rimworld_Animations {
|
|||
GenDraw.DrawMeshNowOrLater(mesh, pawnHeadPosition, Quaternion.AngleAxis(pawnAnimator.headAngle, Vector3.up), material, portrait);
|
||||
}
|
||||
}
|
||||
|
||||
public static readonly JobDef JoinInBedAnimation = DefDatabase<JobDef>.GetNamed("JoinInBedAnimation", true);
|
||||
public static readonly JobDef GettinLovedAnimation = DefDatabase<JobDef>.GetNamed("GettinLovedAnimation", true);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -47,7 +47,7 @@ namespace Rimworld_Animations {
|
|||
yield return Toils_Reserve.Reserve(ibed, Bed.SleepingSlotsCount, 0);
|
||||
|
||||
Toil get_loved = new Toil();
|
||||
get_loved.FailOn(() => Partner.CurJobDef != DefDatabase<JobDef>.GetNamed("JoinInBedAnimation", true));
|
||||
get_loved.FailOn(() => Partner.CurJobDef != AnimationUtility.JoinInBedAnimation);
|
||||
get_loved.defaultCompleteMode = ToilCompleteMode.Never;
|
||||
get_loved.socialMode = RandomSocialMode.Off;
|
||||
get_loved.handlingFacing = true;
|
||||
|
|
|
@ -27,7 +27,7 @@ namespace Rimworld_Animations {
|
|||
yield return Toils_Reserve.Reserve(ipartner, xxx.max_rapists_per_prisoner, 0, null);
|
||||
|
||||
Toil goToPawnInBed = Toils_Goto.GotoThing(ipartner, PathEndMode.OnCell);
|
||||
goToPawnInBed.FailOn(() => !RestUtility.InBed(Partner) && !xxx.in_same_bed(Partner, pawn));
|
||||
goToPawnInBed.FailOn(() => !(RestUtility.InBed(Partner) || Partner.CurJobDef == AnimationUtility.GettinLovedAnimation));
|
||||
|
||||
yield return goToPawnInBed;
|
||||
|
||||
|
@ -35,15 +35,17 @@ namespace Rimworld_Animations {
|
|||
Toil startPartnerSex = new Toil();
|
||||
startPartnerSex.initAction = delegate {
|
||||
|
||||
Job gettinLovedJob = JobMaker.MakeJob(DefDatabase<JobDef>.GetNamed("GettinLovedAnimation"), pawn, Bed); // new gettin loved toil that wakes up the pawn goes here
|
||||
if(Partner.CurJobDef != AnimationUtility.GettinLovedAnimation) {
|
||||
Job gettinLovedJob = JobMaker.MakeJob(AnimationUtility.GettinLovedAnimation, pawn, Bed); // new gettin loved toil that wakes up the pawn goes here
|
||||
Partner.jobs.jobQueue.EnqueueFirst(gettinLovedJob);
|
||||
Partner.jobs.EndCurrentJob(JobCondition.InterruptForced);
|
||||
}
|
||||
|
||||
Partner.jobs.jobQueue.EnqueueFirst(gettinLovedJob);
|
||||
Partner.jobs.EndCurrentJob(JobCondition.InterruptForced);
|
||||
};
|
||||
yield return startPartnerSex;
|
||||
|
||||
Toil sexToil = new Toil();
|
||||
sexToil.FailOn(() => (Partner.CurJobDef == null) || Partner.CurJobDef != DefDatabase<JobDef>.GetNamed("GettinLovedAnimation", true)); //partner jobdriver is not sexbaserecieverlovedforanim
|
||||
sexToil.FailOn(() => (Partner.CurJobDef == null) || Partner.CurJobDef != AnimationUtility.GettinLovedAnimation); //partner jobdriver is not sexbaserecieverlovedforanim
|
||||
sexToil.socialMode = RandomSocialMode.Off;
|
||||
sexToil.defaultCompleteMode = ToilCompleteMode.Never;
|
||||
sexToil.handlingFacing = true;
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
using HarmonyLib;
|
||||
/*
|
||||
using HarmonyLib;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
@ -144,4 +145,4 @@ namespace Rimworld_Animations {
|
|||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}*/
|
|
@ -19,7 +19,7 @@ namespace Rimworld_Animations {
|
|||
if(__result != null) {
|
||||
Pawn partnerInMyBed = LovePartnerRelationUtility.GetPartnerInMyBed(pawn);
|
||||
RestUtility.WakeUp(pawn);
|
||||
__result = JobMaker.MakeJob(DefDatabase<JobDef>.GetNamed("JoinInBedAnimation", true), partnerInMyBed, partnerInMyBed.CurrentBed());
|
||||
__result = JobMaker.MakeJob(AnimationUtility.JoinInBedAnimation, partnerInMyBed, partnerInMyBed.CurrentBed());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue