public static void NotifyNuzzled(JobDriver_Nuzzle __instance) { CompDieUnlessReset comp = __instance.pawn.TryGetComp <CompDieUnlessReset>(); if (comp != null && __instance.pawn.def == InternalDefOf.GR_Fleshling) { comp.ResetTimer(); } }
static IEnumerable <Toil> MakeNewToilsPostfix([NotNull] IEnumerable <Toil> __result, [NotNull] JobDriver_Nuzzle __instance) { foreach (Toil toil in __result) { yield return(toil); } var newToil = Toils_General.Do(() => { Pawn nuzzlee = (__instance.pawn?.CurJob?.targetA.Thing) as Pawn; MutagenicNuzzle(__instance.pawn, nuzzlee); }); yield return(newToil); }