internal static void ApparelChanged_Postfix(ref Pawn_ApparelTracker __instance)
        {
            Pawn_ApparelTracker _this = __instance;

            LongEventHandler.ExecuteWhenFinished(delegate {
                Children_Drawing.ResolveAgeGraphics(_this.pawn.Drawer.renderer.graphics);
            });
        }
        internal static void ResolveApparelGraphics_Patch(ref PawnGraphicSet __instance)
        {
            Pawn pawn = __instance.pawn;

            // Updates the beard
            if (pawn.apparel.BodyPartGroupIsCovered(BodyPartGroupDefOf.UpperHead) && pawn.RaceProps.Humanlike)
            {
                Children_Drawing.ResolveAgeGraphics(__instance);
            }
        }
        internal static void ResolveAllGraphics_Patch(ref PawnGraphicSet __instance)
        {
            Pawn pawn = __instance.pawn;

            if (pawn.RaceProps.Humanlike)
            {
                Children_Drawing.ResolveAgeGraphics(__instance);
                __instance.ResolveApparelGraphics();
            }
        }
Esempio n. 4
0
        internal static void ResolveAllGraphics_Patch(ref PawnGraphicSet __instance)
        {
            Pawn           pawn  = __instance.pawn;
            PawnGraphicSet _this = __instance;

            if (pawn.RaceProps.Humanlike)
            {
                Children_Drawing.ResolveAgeGraphics(__instance);
                LongEventHandler.ExecuteWhenFinished(delegate {
                    _this.ResolveApparelGraphics();
                });
            }
        }