mirror of
https://gitgud.io/c0ffeeeeeeee/rjw-events.git
synced 2024-08-14 23:57:42 +00:00
first commit
This commit is contained in:
parent
1c82248286
commit
6d1a218b2e
23 changed files with 836 additions and 0 deletions
64
Source/LordJobs/LordJob_Joinable_Orgy.cs
Normal file
64
Source/LordJobs/LordJob_Joinable_Orgy.cs
Normal file
|
@ -0,0 +1,64 @@
|
|||
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)
|
||||
{
|
||||
if (!CasualSex_Helper.CanHaveSex(p) || p.Map.mapPawns.FreeColonists.Exists((Pawn p1) =>
|
||||
{
|
||||
|
||||
return p.relations.SecondaryRomanceChanceFactor(p1) > 0 || p1.relations.SecondaryRomanceChanceFactor(p) > 0;
|
||||
|
||||
})) return 0;
|
||||
|
||||
return base.VoluntaryJoinPriorityFor(p);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue