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 IndoorEnemyCap v1.0.0
IndoorEnemyCap.dll
Decompiled 2 hours agousing System; using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using System.Security; using System.Security.Permissions; using BepInEx; using BepInEx.Configuration; using BepInEx.Logging; using HarmonyLib; using Microsoft.CodeAnalysis; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)] [assembly: IgnoresAccessChecksTo("Assembly-CSharp")] [assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")] [assembly: AssemblyCompany("IndoorEnemyCap")] [assembly: AssemblyConfiguration("Release")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0")] [assembly: AssemblyProduct("IndoorEnemyCap")] [assembly: AssemblyTitle("IndoorEnemyCap")] [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] [assembly: AssemblyVersion("1.0.0.0")] [module: UnverifiableCode] [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 IndoorEnemyCap { [BepInPlugin("sando.IndoorEnemyCap", "IndoorEnemyCap", "1.0.0")] public class Plugin : BaseUnityPlugin { internal static ConfigEntry<float> Multiplier; internal static ManualLogSource Log; private void Awake() { //IL_0034: Unknown result type (might be due to invalid IL or missing references) Log = ((BaseUnityPlugin)this).Logger; Multiplier = ((BaseUnityPlugin)this).Config.Bind<float>("General", "IndoorPowerMultiplier", 2f, "Multiplier for each moon's indoor enemy power cap (1 = vanilla). Not applied during Nutcracker/Hoarding bug invasions."); new Harmony("sando.IndoorEnemyCap").PatchAll(typeof(Plugin).Assembly); } } [HarmonyPatch(typeof(RoundManager), "RefreshEnemiesList")] internal static class RefreshEnemiesListPatch { private static void Postfix(RoundManager __instance) { if (__instance.enemyRushIndex == -1) { float currentMaxInsidePower = __instance.currentMaxInsidePower; __instance.currentMaxInsidePower = currentMaxInsidePower * Plugin.Multiplier.Value; Plugin.Log.LogInfo((object)$"Indoor enemy power cap: {currentMaxInsidePower} -> {__instance.currentMaxInsidePower}"); } } } } namespace System.Runtime.CompilerServices { [AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)] internal sealed class IgnoresAccessChecksToAttribute : Attribute { public IgnoresAccessChecksToAttribute(string assemblyName) { } } }