2022-11-01 16:15:06 +00:00
|
|
|
|
using HarmonyLib;
|
|
|
|
|
using rjw;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Reflection.Emit;
|
|
|
|
|
using System.Reflection;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using Verse;
|
|
|
|
|
using rjwquirks.Modules.Quirks;
|
|
|
|
|
|
|
|
|
|
namespace rjwquirks.HarmonyPatches
|
|
|
|
|
{
|
2023-02-20 20:50:53 +00:00
|
|
|
|
[HarmonyPatch(typeof(JobGiver_Masturbate), nameof(JobGiver_Masturbate.WantsToMasturbate))]
|
2022-11-01 16:15:06 +00:00
|
|
|
|
public class Patch_JobGiver_Masturbate
|
|
|
|
|
{
|
2023-02-20 20:50:53 +00:00
|
|
|
|
[HarmonyPostfix]
|
|
|
|
|
public static void ApplyQuirkToMasturbate(Pawn pawn, ref bool __result)
|
2022-11-01 16:15:06 +00:00
|
|
|
|
{
|
2023-02-20 20:50:53 +00:00
|
|
|
|
if (!__result && pawn.HasQuirk(QuirkDefOf.Exhibitionist))
|
2022-11-01 16:15:06 +00:00
|
|
|
|
{
|
2023-02-20 20:50:53 +00:00
|
|
|
|
__result = true;
|
2022-11-01 16:15:06 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
2023-02-20 20:50:53 +00:00
|
|
|
|
}
|
2022-11-01 16:15:06 +00:00
|
|
|
|
}
|