2021-04-12 17:43:58 +00:00
|
|
|
|
using HarmonyLib;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using Verse;
|
|
|
|
|
using Verse.AI.Group;
|
|
|
|
|
|
|
|
|
|
namespace RJW_Events
|
|
|
|
|
{
|
2021-07-28 06:10:59 +00:00
|
|
|
|
|
2021-04-12 17:43:58 +00:00
|
|
|
|
[HarmonyPatch(typeof(PawnGraphicSet), "ResolveApparelGraphics")]
|
|
|
|
|
public static class HarmonyPatch_StayNudeForOrgy
|
|
|
|
|
{
|
|
|
|
|
public static bool Prefix(PawnGraphicSet __instance)
|
|
|
|
|
{
|
2021-04-13 19:40:37 +00:00
|
|
|
|
if(LordUtility.GetLord(__instance.pawn)?.LordJob != null &&
|
|
|
|
|
LordUtility.GetLord(__instance.pawn).LordJob is LordJob_Joinable_Orgy &&
|
|
|
|
|
!(LordUtility.GetLord(__instance.pawn).LordJob as LordJob_Joinable_Orgy).IsGatheringAboutToEnd())
|
2021-04-12 17:43:58 +00:00
|
|
|
|
{
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|