using System;
using Verse;
using RimWorld;
using HarmonyLib;
using rjw;
using rjwwhoring;
using System.Reflection;
using SCE;

using static RimWorld.HistoryEventArgsNames;
using static SCE.SCEHistoryEventArgNames;

namespace SCE.Whoring.Patches
{
    [HarmonyPatch]
    public static class AddWhoringEvents
    {
        public static MethodBase TargetMethod()
        {
            return AccessTools.Method("rjwwhoring.AfterSexUtilityPatch:ThinkAboutWhoring");
        }

        // public static bool Prefix(Pawn pawn, Pawn partner, bool isReceiving, SexProps props, bool whoring)
        // {
        //     if (pawn.Ideo == null)
        //     {
        //         return true;
        //     }

        //     if (whoring && !isReceiving)
        //     {
        //         var ev = new HistoryEvent(SCEEventDefOf.SoldBody, pawn.Named(Doer), props.Named(Props));
        //         Find.HistoryEventsManager.RecordEvent(ev);
        //         return !pawn.Ideo.Notify_MemberHadSex(ev);
        //     }

        //     return false;
        // }
    }
}