19 lines
342 B
C#
19 lines
342 B
C#
using HarmonyLib;
|
|
using Verse;
|
|
|
|
namespace Rimworld_Animations
|
|
{
|
|
[HarmonyPatch(typeof(PawnGraphicSet), "ResolveApparelGraphics")]
|
|
public static class HarmonyPatch_ResolveApparelGraphics
|
|
{
|
|
public static bool Prefix(ref Pawn ___pawn)
|
|
{
|
|
if (CompBodyAnimator.IsAnimating(___pawn))
|
|
{
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
}
|
|
}
|