public static bool Pre_DrawEquipment_Cloak(PawnRenderer __instance) { Pawn pawn = HarmonyPatches.PawnRenderer_GetPawn(__instance); bool flag = pawn.health.hediffSet.HasHediff(YautjaDefOf.RRY_Hediff_Cloaked, false); if (flag) { return(false); } return(true); }
// Token: 0x0600000C RID: 12 RVA: 0x0000283C File Offset: 0x00000A3C public static void Patch_PawnRenderer_RenderPawnAt(PawnRenderer __instance, ref Vector3 drawLoc, ref RotDrawMode bodyDrawType, ref bool headStump) { Pawn pawn = HarmonyPatches.PawnRenderer_GetPawn(__instance); foreach (var hd in pawn.health.hediffSet.hediffs) { HediffComp_DrawImplant comp = hd.TryGetComp <HediffComp_DrawImplant>(); if (comp != null) { comp.DrawImplant(); } } }