Decompiled source of RemoveOrbExplosion v1.0.0

plugins/yazirushi-RemoveOrbExplosion/RemoveOrbExplosion.dll

Decompiled a month ago
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using BepInEx;
using BepInEx.Configuration;
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("test")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("test")]
[assembly: AssemblyCopyright("Copyright ©  2025")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("57175740-9574-4922-b26c-e5ff91efc982")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace RemoveOrbExplosion;

[BepInPlugin("yazirushi.RemoveOrbExplosion", "Remove Orb Explosion", "1.0.0")]
public class RemoveOrbExplosion : BaseUnityPlugin
{
	private readonly Harmony harmony = new Harmony("yazirushi.RemoveOrbExplosion");

	internal static ManualLogSource mls;

	public static ConfigEntry<bool> EnableLogging;

	private void Awake()
	{
		EnableLogging = ((BaseUnityPlugin)this).Config.Bind<bool>("ConsoleLog", "EnableLogging", false, "ログの有効化");
		mls = ((BaseUnityPlugin)this).Logger;
		mls.LogInfo((object)"RemoveOrbExplosionが起動しました!");
		mls.LogInfo((object)$"RemoveOrbExplosion = {EnableLogging.Value}");
		harmony.PatchAll();
	}
}
[HarmonyPatch(typeof(EnemyValuable), "DestroyImpulse")]
public class Patch_EnemyValuable_DestroyImpulse
{
	private static bool Prefix()
	{
		if (RemoveOrbExplosion.EnableLogging.Value)
		{
			RemoveOrbExplosion.mls.LogInfo((object)"RemoveOrbExplosion Remove Explosion!");
		}
		return false;
	}
}