rjw-events/Source/Patches/HarmonyPatch_ReclotheOnEnd.cs

25 lines
620 B
C#
Raw Permalink Normal View History

2021-04-12 07:48:48 +00:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using HarmonyLib;
using RimWorld;
using Verse;
namespace RJW_Events
{
[HarmonyPatch(typeof(LordJob_Joinable_Party), "ApplyOutcome")]
public static class HarmonyPatch_ReclotheOnEnd
{
public static void Postfix(LordToil_Party toil)
{
List<Pawn> ownedPawns = toil.lord.ownedPawns;
2021-04-13 19:40:37 +00:00
for (int i = 0; i < ownedPawns.Count; i++)
2021-04-12 07:48:48 +00:00
{
2021-04-13 19:40:37 +00:00
ownedPawns[i].Drawer.renderer.graphics.ResolveApparelGraphics();
2021-04-12 07:48:48 +00:00
}
}
}
}