mirror of
https://gitgud.io/c0ffeeeeeeee/rjw-events.git
synced 2024-08-14 23:57:42 +00:00
issues with people standing on top of each other
This commit is contained in:
parent
470bafbfee
commit
59f8e9ff91
5 changed files with 8 additions and 8 deletions
Binary file not shown.
|
@ -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>
|
||||||
|
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue