rjw-events/Source/Patches/HarmonyPatch_ReclotheOnRemovePawn.cs

24 lines
583 B
C#
Raw Normal View History

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
{
[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();
}
}
}
}