rjw-quirks/RJW-Quirks/HarmonyPatches/Patch_JobGiver_Masturbate.cs

28 lines
694 B
C#
Raw Normal View History

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
{
[HarmonyPatch(typeof(JobGiver_Masturbate), nameof(JobGiver_Masturbate.WantsToMasturbate))]
2022-11-01 16:15:06 +00:00
public class Patch_JobGiver_Masturbate
{
[HarmonyPostfix]
public static void ApplyQuirkToMasturbate(Pawn pawn, ref bool __result)
2022-11-01 16:15:06 +00:00
{
if (!__result && pawn.HasQuirk(QuirkDefOf.Exhibitionist))
2022-11-01 16:15:06 +00:00
{
__result = true;
2022-11-01 16:15:06 +00:00
}
}
}
2022-11-01 16:15:06 +00:00
}