Compare commits

...

33 commits

Author SHA1 Message Date
Platinum
8fa618e9c6 merge 2020-08-06 10:57:37 -07:00
Platinum
770b10e963 merge master 2020-08-06 10:57:32 -07:00
Platinum
4cd35051ee merge from main 2020-08-03 11:27:10 -07:00
Platinum
1b13aa267c update no har 2020-07-20 14:00:03 -07:00
Platinum
b61600bb0e build 2020-06-01 10:49:18 -07:00
Platinum
58072acc32 merge 2020-06-01 10:49:13 -07:00
Platinum
0d8d7c256e merge 2020-05-31 20:47:16 -07:00
Platinum
d2121683ad build 2020-05-31 12:04:22 -07:00
Platinum
d713ada085 merge 2020-05-31 12:04:15 -07:00
Platinum
6127fe964a build 2020-05-30 14:15:49 -07:00
Platinum
31e2df8c00 merge from master 2020-05-30 14:15:37 -07:00
Platinum
be8510cb92 merge 2020-05-29 23:27:34 -07:00
Platinum
218e4426c8 changed drawtracker to move with offset 2020-05-29 23:26:20 -07:00
Platinum
0f13261545 Merge branch 'master' into No-HAR 2020-05-29 23:11:44 -07:00
Platinum
792eb26345 merge 2020-05-29 13:15:55 -07:00
Platinum
9f65c207e3 build for rjw 4.2.0 2020-05-18 08:18:15 -07:00
Platinum
26f7e77d4a build 2020-05-16 19:32:54 -07:00
Platinum
d9121c0ae1 merge 2020-05-16 19:32:45 -07:00
Platinum
3e1bd7607c build for RJW 4.1.5a 2020-05-13 23:06:42 -07:00
Platinum
eb325a8dce fixed a bug causing multiple casual sex to not play orgy anim + more bodytype offsets 2020-05-10 17:14:45 -07:00
Platinum
b5b4073b08 build 2020-05-08 18:25:35 -07:00
Platinum
7188403c1c merge 2020-05-08 18:25:27 -07:00
Platinum
3430dfc996 build 2020-05-05 13:39:55 -07:00
Platinum
34f51e9008 merge 2020-05-05 13:39:48 -07:00
Platinum
96648de258 build 2020-04-29 22:47:06 -07:00
Platinum
71e6cc6694 rollback patch 2020-04-29 22:46:55 -07:00
Platinum
94f931be9d build 2020-04-29 21:36:30 -07:00
Platinum
d7c17027e6 build 2020-04-28 23:36:33 -07:00
Platinum
c1d4af9b72 merging master to no har 2020-04-28 23:35:57 -07:00
Platinum
3bbbd1e1cb build 2020-04-27 20:36:27 -07:00
Platinum
80d6af526c offset tweaks 2020-04-27 20:35:44 -07:00
Platinum
c47bd58f55 build 2020-04-27 12:18:34 -07:00
Platinum
e0ffbd110d no-har 2020-04-27 00:14:36 -07:00
8 changed files with 22 additions and 13 deletions

View file

@ -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>

View file

@ -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>

View file

@ -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);
}
}

View file

@ -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;

View file

@ -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;

View file

@ -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;
}
}
}
}*/

View file

@ -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());
}
}
}