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 SCP3199Config v1.0.2
SCP3199Config.dll
Decompiled a year 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.Logging; using LethalBestiary.Modules; 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("SCP3199Config")] [assembly: AssemblyConfiguration("Release")] [assembly: AssemblyDescription("My first plugin")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0")] [assembly: AssemblyProduct("SCP3199Config")] [assembly: AssemblyTitle("SCP3199Config")] [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] [assembly: AssemblyVersion("1.0.0.0")] [module: UnverifiableCode] [module: RefSafetyRules(11)] namespace Microsoft.CodeAnalysis { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] internal sealed class EmbeddedAttribute : Attribute { } } namespace System.Runtime.CompilerServices { [CompilerGenerated] [Microsoft.CodeAnalysis.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 SCP3199Config { [BepInPlugin("SCP3199Config", "SCP3199Config", "1.0.0")] [BepInDependency(/*Could not decode attribute arguments.*/)] public class Plugin : BaseUnityPlugin { public enum LogType { Message, Warning, Error, Fatal, Debug } private static ManualLogSource mls; public static int SCP3199SpawnRate; private void Awake() { SCP3199SpawnRate = ((BaseUnityPlugin)this).Config.Bind<int>("General", "SCP3199SpawnRate", 15, "The spawn rate of SCP3199 (original value in the mod is 40).").Value; mls = Logger.CreateLogSource("SCP3199Config"); Log("Plugin SCP3199Config is loaded!"); ChangeSpawnRateSCP3199(); } private static void ChangeSpawnRateSCP3199() { //IL_0064: Unknown result type (might be due to invalid IL or missing references) //IL_0069: Unknown result type (might be due to invalid IL or missing references) //IL_0070: Unknown result type (might be due to invalid IL or missing references) Log("Attempting to change spawn rate of Scp-3199"); foreach (SpawnableEnemy spawnableEnemy in Enemies.spawnableEnemies) { if (!(spawnableEnemy?.enemy?.enemyName == "scp3199")) { continue; } Log("Changed spawn rate of Scp-3199"); foreach (LevelTypes key in spawnableEnemy.levelRarities.Keys) { spawnableEnemy.levelRarities[key] = SCP3199SpawnRate; } } } internal static void Log(string message, LogType type = LogType.Message) { switch (type) { case LogType.Debug: mls.LogMessage((object)message); break; case LogType.Warning: mls.LogWarning((object)message); break; case LogType.Error: mls.LogError((object)message); break; case LogType.Fatal: mls.LogFatal((object)message); break; default: mls.LogMessage((object)message); break; } } } public static class PluginInfo { public const string PLUGIN_GUID = "SCP3199Config"; public const string PLUGIN_NAME = "SCP3199Config"; public const string PLUGIN_VERSION = "1.0.0"; } } namespace System.Runtime.CompilerServices { [AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)] internal sealed class IgnoresAccessChecksToAttribute : Attribute { public IgnoresAccessChecksToAttribute(string assemblyName) { } } }