예제 #1
0
        private static bool LockInteraction_Prefix(YieldMicroInteraction __instance, ref YieldResult __result)
        {
            YieldMicroInteractionHelper helper = new YieldMicroInteractionHelper(__instance);

            __result = helper.New_LockInteraction(false);
            return(false);
        }
 public static void Postfix(YieldMicroInteraction __instance, ref YieldResult yieldResult)
 {
     if (__instance.Interaction == Interaction.Butcher && (yieldResult == YieldResult.Completed || yieldResult == YieldResult.Failed))
     {
         Interactable target = (Interactable)AccessTools.Property(typeof(YieldMicroInteraction), "InteractionTarget").GetValue(__instance);
         AnimalAlertsMod.Instance.animalsMarkedForButchering.Remove(target.GetPrimaryHolder <HumanAI>());
     }
 }