using System; using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using BepInEx; using HarmonyLib; using Microsoft.CodeAnalysis; using UnityEngine; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)] [assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")] [assembly: AssemblyVersion("0.0.0.0")] [module: RefSafetyRules(11)] namespace Microsoft.CodeAnalysis { [CompilerGenerated] [Embedded] internal sealed class EmbeddedAttribute : Attribute { } } namespace System.Runtime.CompilerServices { [CompilerGenerated] [Embedded] [AttributeUsage(AttributeTargets.Module, AllowMultiple = false, Inherited = false)] internal sealed class RefSafetyRulesAttribute : Attribute { public readonly int Version; public RefSafetyRulesAttribute(int P_0) { Version = P_0; } } } namespace NoHunter { [BepInPlugin("com.yourname.NoHunter", "NoHunter", "1.0.0")] public class NoHunterPlugin : BaseUnityPlugin { private void Awake() { //IL_0005: Unknown result type (might be due to invalid IL or missing references) new Harmony("com.yourname.NoHunter").PatchAll(); ((BaseUnityPlugin)this).Logger.LogInfo((object)"DEN_Hunter removal mod loaded (patched Update)."); } private void Start() { DEN_Hunter[] array = Object.FindObjectsOfType(); for (int i = 0; i < array.Length; i++) { Object.Destroy((Object)(object)((Component)array[i]).gameObject); } DEN_Hunter_Arm[] array2 = Object.FindObjectsOfType(); for (int j = 0; j < array2.Length; j++) { Object.Destroy((Object)(object)((Component)array2[j]).gameObject); } } } [HarmonyPatch(typeof(DEN_Hunter), "Update")] public static class DEN_Hunter_Update_Patch { private static bool Prefix(DEN_Hunter __instance) { if ((Object)(object)__instance != (Object)null && (Object)(object)((Component)__instance).gameObject != (Object)null) { Object.Destroy((Object)(object)((Component)__instance).gameObject); } return false; } } [HarmonyPatch(typeof(DEN_Hunter_Arm), "Update")] public static class DEN_Hunter_Arm_Update_Patch { private static bool Prefix(DEN_Hunter_Arm __instance) { if ((Object)(object)__instance != (Object)null && (Object)(object)((Component)__instance).gameObject != (Object)null) { Object.Destroy((Object)(object)((Component)__instance).gameObject); } return false; } } }