mirror of
https://gitgud.io/c0ffeeeeeeee/rjw-toys-and-masturbation.git
synced 2024-08-15 00:43:44 +00:00
Add project files.
This commit is contained in:
parent
d2dbc71d94
commit
39924e2af5
17 changed files with 487 additions and 0 deletions
40
Source/JobGivers/JobGiver_MasturbateWithToy.cs
Normal file
40
Source/JobGivers/JobGiver_MasturbateWithToy.cs
Normal file
|
@ -0,0 +1,40 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using RimWorld;
|
||||
using rjw;
|
||||
using Verse;
|
||||
using Verse.AI;
|
||||
|
||||
namespace RJW_ToysAndMasturbation {
|
||||
class JobGiver_MasturbateWithToy : ThinkNode_JobGiver {
|
||||
|
||||
public static IntVec3 FapLocation(Pawn p) => (new JobGiver_Masturbate()).FindFapLocation(p);
|
||||
|
||||
protected override Job TryGiveJob(Pawn pawn) {
|
||||
|
||||
if (pawn.Drafted) {
|
||||
return null;
|
||||
}
|
||||
if (!xxx.can_be_fucked(pawn) && !xxx.can_fuck(pawn)) {
|
||||
return null;
|
||||
}
|
||||
if ((SexUtility.ReadyForLovin(pawn) && (!xxx.is_whore(pawn) || pawn.IsPrisoner || xxx.is_slave(pawn))) || xxx.is_frustrated(pawn)) {
|
||||
if (RJWPreferenceSettings.FapInBed && pawn.jobs.curDriver is JobDriver_LayDown) {
|
||||
Building_Bed bed = ((JobDriver_LayDown)pawn.jobs.curDriver).Bed;
|
||||
if (bed != null) {
|
||||
return JobMaker.MakeJob(xxx.Masturbate, null, bed, bed.Position);
|
||||
}
|
||||
}
|
||||
else if (RJWPreferenceSettings.FapEverywhere && (xxx.is_frustrated(pawn) || xxx.has_quirk(pawn, "Exhibitionist"))) {
|
||||
return JobMaker.MakeJob(xxx.Masturbate, null, null, FapLocation(pawn));
|
||||
}
|
||||
}
|
||||
return null;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue