using 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 HarmonyLib; using Microsoft.CodeAnalysis; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] [assembly: TargetFramework(".NETFramework,Version=v4.6.2", FrameworkDisplayName = "")] [assembly: AssemblyCompany("amione.MycopunkAlwaysSpawnBunker")] [assembly: AssemblyConfiguration("Debug")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0+ca467ab6ef1cf9c5174cb5330fabe852b08ac6d2")] [assembly: AssemblyProduct("MycopunkAlwaysSpawnBunker")] [assembly: AssemblyTitle("amione.MycopunkAlwaysSpawnBunker")] [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; } } } internal static class PluginInfo { public const string PluginGuid = "amione.MycopunkAlwaysSpawnBunker"; public const string PluginName = "MycopunkAlwaysSpawnBunker"; public const string PluginVersion = "1.0.0"; } namespace MycopunkAlwaysSpawnBunker { [BepInPlugin("amione.MycopunkAlwaysSpawnBunker", "MycopunkAlwaysSpawnBunker", "1.0.0")] public class Plugin : BaseUnityPlugin { internal static ManualLogSource Log; private void Awake() { //IL_0011: Unknown result type (might be due to invalid IL or missing references) //IL_0017: Expected O, but got Unknown Log = ((BaseUnityPlugin)this).Logger; Harmony val = new Harmony("amione.MycopunkAlwaysSpawnBunker"); val.PatchAll(); Log.LogInfo((object)"MycopunkAlwaysSpawnBunker v1.0.0 loaded - Bunker encounter will always spawn."); } } [HarmonyPatch(typeof(BunkerEncounter), "CanSpawn")] internal static class BunkerEncounter_CanSpawn_Patch { private static void Postfix(ref bool __result) { __result = true; } } [HarmonyPatch(/*Could not decode attribute arguments.*/)] internal static class BunkerEncounter_SpawnWeight_Patch { private const float ForcedSpawnWeight = 999999f; private static void Postfix(ref float __result) { __result = 999999f; } } }