rimworld-animations/1.4/Source/Patches/RimworldPatches/HarmonyPatch_ResolveApparel...

19 lines
342 B
C#
Raw Normal View History

using HarmonyLib;
using Verse;
namespace Rimworld_Animations
{
[HarmonyPatch(typeof(PawnGraphicSet), "ResolveApparelGraphics")]
public static class HarmonyPatch_ResolveApparelGraphics
{
public static bool Prefix(ref Pawn ___pawn)
{
2023-12-03 06:48:42 +00:00
if (CompBodyAnimator.IsAnimating(___pawn))
{
return false;
}
return true;
}
}
}