Please disclose if any significant portion of your mod was created using AI tools by adding the 'AI Generated' category. Failing to do so may result in the mod being removed from Thunderstore.
Decompiled source of Disable Mimics v1.0.0
plugins/DisableMimics.dll
Decompiled a year agousing System.Collections.Generic; using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; using BepInEx; using BepInEx.Logging; using DisableMimics.Patches; using HarmonyLib; using UnityEngine; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] [assembly: AssemblyTitle("DisableMimics")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("DisableMimics")] [assembly: AssemblyCopyright("Copyright © 2024")] [assembly: AssemblyTrademark("")] [assembly: ComVisible(false)] [assembly: Guid("d32506d2-5f95-4b7e-8287-e0321a1c6851")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")] [assembly: AssemblyVersion("1.0.0.0")] namespace DisableMimics { [BepInPlugin("ethereal_chiono.DisableMimics", "Disable Mimics", "1.0.0")] public class HardcoreModBase : BaseUnityPlugin { private const string modGUID = "ethereal_chiono.DisableMimics"; private const string modName = "Disable Mimics"; private const string modVersion = "1.0.0"; private readonly Harmony harmony = new Harmony("ethereal_chiono.DisableMimics"); private static HardcoreModBase Instance; internal ManualLogSource mls; private void Awake() { if ((Object)(object)Instance == (Object)null) { Instance = this; } mls = Logger.CreateLogSource("ethereal_chiono.DisableMimics"); mls.LogInfo((object)string.Format("{0} has awaken.", "Disable Mimics")); harmony.PatchAll(typeof(HardcoreModBase)); harmony.PatchAll(typeof(MaskedPlayerEnemyPatch)); harmony.PatchAll(typeof(ExcludeMaskedPlayerOutsidePatch)); } } } namespace DisableMimics.Patches { [HarmonyPatch(typeof(RoundManager), "SpawnRandomOutsideEnemy")] public class ExcludeMaskedPlayerOutsidePatch { private static bool Prefix(ref List<EnemyType> currentLevelEnemies) { currentLevelEnemies.RemoveAll((EnemyType enemy) => enemy.enemyName == "MaskedPlayerEnemy"); return true; } } [HarmonyPatch(typeof(RoundManager), "AssignRandomEnemyToVent")] public class MaskedPlayerEnemyPatch { private static bool Prefix(EnemyVent vent, float spawnTime, List<EnemyType> currentLevelEnemies) { currentLevelEnemies.RemoveAll((EnemyType enemy) => enemy.enemyName == "MaskedPlayerEnemy"); return true; } } }