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))] public class Patch_JobGiver_Masturbate { [HarmonyTranspiler] [HarmonyPatch("TryGiveJob")] public static IEnumerable ApplyQuirkToMasturbate(IEnumerable instructions) { MethodInfo Frustrated = AccessTools.Method(typeof(xxx), nameof(xxx.is_frustrated)); MethodInfo Apply = AccessTools.Method(typeof(Patch_JobGiver_Masturbate), nameof(ApplyQuirk)); var labels = instructions.ElementAt(0).labels.ListFullCopy