Decompiled source of NoPowerLevelDecrease v1.0.0

NoPowerLevelDecrease.dll

Decompiled 2 months ago
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using BepInEx;
using HarmonyLib;
using NoPowerLevelDecrease.patches;
using UnityEngine;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
[assembly: AssemblyTitle("NoPowerLevelDecrease")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("NoPowerLevelDecrease")]
[assembly: AssemblyCopyright("Copyright ©  2024")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("4c6e5751-693e-4100-8004-0cb9634b7c3f")]
[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 NoPowerLevelDecrease.patches
{
	[HarmonyPatch(typeof(EnemyAI))]
	internal class powerlevel
	{
		[HarmonyPatch("SubtractFromPowerLevel")]
		[HarmonyPrefix]
		private static bool dont_decrease_patch()
		{
			return false;
		}
	}
}
namespace power_level_mod
{
	[BepInPlugin("catenjoyer.NoPowerLevelDecrease", "NoPowerLevelDecrease", "1.0.0")]
	public class ModBase : BaseUnityPlugin
	{
		private const string modGUID = "catenjoyer.NoPowerLevelDecrease";

		private const string modName = "NoPowerLevelDecrease";

		private const string modVersion = "1.0.0";

		private readonly Harmony harmony = new Harmony("catenjoyer.NoPowerLevelDecrease");

		private static ModBase instance;

		private void Awake()
		{
			if ((Object)null == (Object)(object)instance)
			{
				instance = this;
			}
			harmony.PatchAll(typeof(powerlevel));
		}
	}
}