rjw-events/Source/Patches/HarmonyPatch_ReclotheOnRemovePawn.cs
2021-04-12 10:43:58 -07:00

23 lines
583 B
C#

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
{
[HarmonyPatch(typeof(Lord), "RemovePawn")]
public static class HarmonyPatch_ReclotheOnRemovePawn
{
public static void Postfix(Lord __instance, Pawn p)
{
if(__instance?.LordJob != null && __instance.LordJob is LordJob_Joinable_Orgy)
{
p.Drawer.renderer.graphics.ResolveApparelGraphics();
}
}
}
}