using System;
using System.Linq;
using System.Reflection;
using System.Collections.Generic;
using RimWorld;
using Verse;
using HarmonyLib;
using rjw;

namespace SCE.Patches
{
	[HarmonyPatch(typeof(xxx))]
	public static class xxxPatches
	{
	    [HarmonyPatch("is_rapist")]
        [HarmonyPostfix]
		public static void AccountForProRapeIdeo(Pawn pawn, ref bool __result)
		{
			if (__result || pawn.Ideo == null)
            {
                return;
            }

            if (pawn.Ideo.IsProRape())
            {
                __result = true;
            }
		}

        [HarmonyPatch("is_zoophile")]
        [HarmonyPostfix]
		public static void AccountForProZooIdeo(Pawn pawn, ref bool __result)
		{
            if (__result || pawn.Ideo == null)
            {
                return;
            }
			__result = pawn.Ideo.IsProBestiality(); 
		}
	}
}