mirror of
https://gitgud.io/c0ffeeeeeeee/rimworld-animations.git
synced 2024-08-15 00:43:45 +00:00
Update for RJW 4.6.6 + tweaks to allow threesomes again
This commit is contained in:
parent
099ad96551
commit
a940108cc3
6 changed files with 42 additions and 8 deletions
|
@ -47,7 +47,19 @@ 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(() => {
|
||||
|
||||
for (int i = 0; i < parteners.Count; i++)
|
||||
{
|
||||
if (parteners[i].CurJobDef != DefDatabase<JobDef>.GetNamed("JoinInBedAnimation", true))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
|
||||
});
|
||||
get_loved.defaultCompleteMode = ToilCompleteMode.Never;
|
||||
get_loved.socialMode = RandomSocialMode.Off;
|
||||
get_loved.handlingFacing = true;
|
||||
|
@ -55,6 +67,15 @@ namespace Rimworld_Animations {
|
|||
if (pawn.IsHashIntervalTick(ticks_between_hearts))
|
||||
MoteMaker.ThrowMetaIcon(pawn.Position, pawn.Map, ThingDefOf.Mote_Heart);
|
||||
});
|
||||
get_loved.AddEndCondition(() =>
|
||||
{
|
||||
if (parteners.Count <= 0)
|
||||
{
|
||||
return JobCondition.Succeeded;
|
||||
}
|
||||
return JobCondition.Ongoing;
|
||||
|
||||
});
|
||||
get_loved.AddFinishAction(delegate {
|
||||
if (xxx.is_human(pawn))
|
||||
pawn.Drawer.renderer.graphics.ResolveApparelGraphics();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue