issues with people standing on top of each other

This commit is contained in:
dominiclopez391 2021-11-16 13:48:02 -08:00
parent 470bafbfee
commit 59f8e9ff91
5 changed files with 8 additions and 8 deletions

Binary file not shown.

View file

@ -22,6 +22,9 @@
<chance>0.40</chance> <chance>0.40</chance>
<subNodes> <subNodes>
<li Class="RJW_Events.JobGiver_FindOrgyPartner"></li> <li Class="RJW_Events.JobGiver_FindOrgyPartner"></li>
<li Class="JobGiver_WanderInGatheringArea">
<ticksBetweenWandersRange>200~250</ticksBetweenWandersRange>
</li>
</subNodes> </subNodes>
</li> </li>

View file

@ -30,14 +30,7 @@ namespace RJW_Events
this.FailOn(() => this.Partner.IsFighting()); this.FailOn(() => this.Partner.IsFighting());
this.FailOn(() => this.pawn.Drafted); this.FailOn(() => this.pawn.Drafted);
this.FailOn(() => this.Partner.Drafted); this.FailOn(() => this.Partner.Drafted);
var t = Toils_Goto.GotoThing(this.iTarget, PathEndMode.ClosestTouch);
t.AddPreInitAction(() =>
{
Job newJob = JobMaker.MakeJob(JobDefOf.Wait);
Partner.jobs.StartJob(newJob, JobCondition.InterruptForced);
});
yield return t;
yield return new Toil yield return new Toil
{ {
defaultCompleteMode = ToilCompleteMode.Delay, defaultCompleteMode = ToilCompleteMode.Delay,

View file

@ -96,7 +96,7 @@ namespace RJW_Events
if(!(p.jobs.curDriver is JobDriver_Sex)) if(!(p.jobs.curDriver is JobDriver_Sex))
{ {
//higher chance if person is doing nothing //higher chance if person is doing nothing
chance *= 3f; chance *= 7f;
} }
return chance; return chance;

View file

@ -48,6 +48,10 @@ namespace RJW_Events
{ {
} }
public override void ExposeData()
{
Scribe_Collections.Look<Pawn>(ref this.participants, "orgyParticipants", LookMode.Reference, Array.Empty<object>());
}
public override float VoluntaryJoinPriorityFor(Pawn p) public override float VoluntaryJoinPriorityFor(Pawn p)