2021-04-12 07:48:48 +00:00
|
|
|
|
using RimWorld;
|
|
|
|
|
using rjw;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using Verse;
|
|
|
|
|
|
|
|
|
|
namespace RJW_Events
|
|
|
|
|
{
|
|
|
|
|
class LordJob_Joinable_Orgy : LordJob_Joinable_Party
|
|
|
|
|
{
|
|
|
|
|
protected override ThoughtDef AttendeeThought
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return ThoughtDefOf.AttendedOrgy;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected override TaleDef AttendeeTale
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return TaleDefOf.AttendedOrgy;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
protected override ThoughtDef OrganizerThought
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return ThoughtDefOf.AttendedOrgy;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected override TaleDef OrganizerTale
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return TaleDefOf.AttendedOrgy;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public LordJob_Joinable_Orgy(IntVec3 spot, Pawn organizer, GatheringDef gatheringDef) : base(spot, organizer, gatheringDef)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public override float VoluntaryJoinPriorityFor(Pawn p)
|
|
|
|
|
{
|
2021-04-13 19:40:37 +00:00
|
|
|
|
if (!CasualSex_Helper.CanHaveSex(p)) return 0;
|
2021-04-12 07:48:48 +00:00
|
|
|
|
|
|
|
|
|
return base.VoluntaryJoinPriorityFor(p);
|
|
|
|
|
}
|
|
|
|
|
|
2021-04-13 19:40:37 +00:00
|
|
|
|
public bool IsGatheringAboutToEnd()
|
|
|
|
|
{
|
|
|
|
|
return timeoutTrigger.TicksLeft < 300;
|
|
|
|
|
}
|
2021-04-12 07:48:48 +00:00
|
|
|
|
}
|
|
|
|
|
}
|