mirror of
https://gitgud.io/c0ffeeeeeeee/rjw-events.git
synced 2024-08-14 23:57:42 +00:00
23 lines
583 B
C#
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();
|
|
}
|
|
}
|
|
}
|
|
}
|