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 StayInYourBiome v1.0.2
StayInYourBiome.dll
Decompiled 2 years agousing System; using System.Collections.Generic; 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 HarmonyLib; using Microsoft.CodeAnalysis; using StayInYourBiome.Patches; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)] [assembly: TargetFramework(".NETFramework,Version=v4.6.1", FrameworkDisplayName = ".NET Framework 4.6.1")] [assembly: AssemblyCompany("StayInYourBiome")] [assembly: AssemblyConfiguration("Release")] [assembly: AssemblyDescription("Stop creature spawns from global boss keys from occurring.")] [assembly: AssemblyFileVersion("1.0.2.0")] [assembly: AssemblyInformationalVersion("1.0.2")] [assembly: AssemblyProduct("StayInYourBiome")] [assembly: AssemblyTitle("StayInYourBiome")] [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] [assembly: AssemblyVersion("1.0.2.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 StayInYourBiome { [BepInPlugin("Kevver.StayInYourBiome", "StayInYourBiome", "1.0.2")] public class Plugin : BaseUnityPlugin { public const string NAME = "StayInYourBiome"; public const string AUTHOR = "Kevver"; public const string GUID = "Kevver.StayInYourBiome"; public const string VERSION = "1.0.2"; private readonly Harmony harmony = new Harmony("StayInYourBiome"); private void Awake() { Logger.Sources.Add((ILogSource)(object)UpdateSpawnList.Logger); Assembly executingAssembly = Assembly.GetExecutingAssembly(); harmony.PatchAll(executingAssembly); } } public static class PluginInfo { public const string PLUGIN_GUID = "StayInYourBiome"; public const string PLUGIN_NAME = "StayInYourBiome"; public const string PLUGIN_VERSION = "1.0.2"; } } namespace StayInYourBiome.Patches { [HarmonyPatch(typeof(SpawnSystem), "UpdateSpawnList")] internal static class UpdateSpawnList { public static ManualLogSource Logger = new ManualLogSource("Kevver.StayInYourBiome.UpdateSpawning"); private static bool Prefix(SpawnSystem __instance, List<SpawnData> spawners, DateTime currentTime, bool eventSpawners) { foreach (SpawnData spawner in spawners) { string text = "defeated_kevver"; bool num = string.IsNullOrEmpty(spawner.m_requiredGlobalKey); bool flag = spawner.m_requiredGlobalKey == text; if (!num && !flag) { Logger.LogInfo((object)("Changing spawner required global key from '" + spawner.m_requiredGlobalKey + "' to '" + text + "'")); spawner.m_requiredGlobalKey = text; } } return true; } } }