mirror of
https://gitgud.io/LonelyRain/rjw-quirks.git
synced 2024-08-15 00:03:31 +00:00
be5f2bdf9a
Updated to parity with quirk removal updates that added helper functions
27 lines
694 B
C#
27 lines
694 B
C#
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))]
|
|
public class Patch_JobGiver_Masturbate
|
|
{
|
|
[HarmonyPostfix]
|
|
public static void ApplyQuirkToMasturbate(Pawn pawn, ref bool __result)
|
|
{
|
|
if (!__result && pawn.HasQuirk(QuirkDefOf.Exhibitionist))
|
|
{
|
|
__result = true;
|
|
}
|
|
}
|
|
}
|
|
}
|