using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using BepInEx;
using BepInEx.Logging;
using HarmonyLib;
[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: AssemblyTitle("BringBackTheBaby")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("BringBackTheBaby")]
[assembly: AssemblyCopyright("Copyright © 2024")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("9e90e30e-59ff-4da2-b850-52db50dd3807")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace ShortCompany;
[BepInPlugin("carthoris.BringBackTheBaby", "BringBackTheBaby", "1.0.0.0")]
public class BringBackTheBaby : BaseUnityPlugin
{
public const string modGUID = "carthoris.BringBackTheBaby";
public const string modName = "BringBackTheBaby";
public const string modVersion = "1.0.0.0";
private readonly Harmony harmony = new Harmony("carthoris.BringBackTheBaby");
private void Awake()
{
ManualLogSource val = Logger.CreateLogSource("carthoris.BringBackTheBaby");
val.LogInfo((object)"\r\n ________ ________ _________ ________ \r\n|\\ __ \\|\\ __ \\|\\___ ___\\\\ __ \\ \r\n\\ \\ \\|\\ /\\ \\ \\|\\ /\\|___ \\ \\_\\ \\ \\|\\ /_ \r\n \\ \\ __ \\ \\ __ \\ \\ \\ \\ \\ \\ __ \\ \r\n \\ \\ \\|\\ \\ \\ \\|\\ \\ \\ \\ \\ \\ \\ \\|\\ \\ \r\n \\ \\_______\\ \\_______\\ \\ \\__\\ \\ \\_______\\\r\n \\|_______|\\|_______| \\|__| \\|_______|");
Harmony.CreateAndPatchAll(typeof(Bbtb), (string)null);
}
}
public class Bbtb
{
[HarmonyPatch(typeof(CaveDwellerAI))]
[HarmonyPatch("Update")]
[HarmonyPostfix]
public static void CaveDwellerAI(CaveDwellerAI __instance)
{
((EnemyAI)__instance).isOutside = false;
}
}