using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using BepInEx;
using BepInEx.Configuration;
using HarmonyLib;
using UnityEngine;
[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
[assembly: AssemblyTitle("NoMeBugueesMalditoSlime")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("NoMeBugueesMalditoSlime")]
[assembly: AssemblyCopyright("Copyright © 2025")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("18850ef7-d250-43d4-b920-d299262b9654")]
[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 NoMeBugueesMalditoSlime;
[BepInPlugin("finishim.nomebugueesmalditoslime", "NoMeBugueesMalditoSlime", "1.0.0")]
public class NoMeBugueesMalditoSlimePlugin : BaseUnityPlugin
{
public static ConfigEntry<bool> DisableSlime;
private void Awake()
{
//IL_0025: Unknown result type (might be due to invalid IL or missing references)
DisableSlime = ((BaseUnityPlugin)this).Config.Bind<bool>("General", "disableSlime", true, "Disable Slime spawn completely. / Desactiva completamente el spawn del Slime");
new Harmony("finishim.nomebugueesmalditoslime").PatchAll();
if (DisableSlime.Value)
{
((BaseUnityPlugin)this).Logger.LogInfo((object)"Slime removed successfully / Slime removido exitosamente");
}
}
}
[HarmonyPatch(typeof(BlobAI), "Start")]
public static class SlimeSpawnPatch
{
public static bool Prefix(BlobAI __instance)
{
if (!NoMeBugueesMalditoSlimePlugin.DisableSlime.Value)
{
return true;
}
Object.Destroy((Object)(object)((Component)__instance).gameObject);
return false;
}
}