Decompiled source of BloodyCheckpoints v1.1.0

BloodyCheckpoints.dll

Decompiled 6 days ago
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using BepInEx;
using HarmonyLib;
using UnityEngine;

[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.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
[assembly: AssemblyCompany("BloodyCheckpoints")]
[assembly: AssemblyConfiguration("Debug")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0")]
[assembly: AssemblyProduct("BloodyCheckpoints")]
[assembly: AssemblyTitle("BloodyCheckpoints")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace BloodyCheckpoints;

[BepInPlugin("bloodycheckpoints.ultranoob.ultrakill", "BloodyCheckpoints", "1.1.0")]
public class BloodyCheckpoints : BaseUnityPlugin
{
	private Harmony harmony;

	private void Awake()
	{
		//IL_0018: Unknown result type (might be due to invalid IL or missing references)
		//IL_0022: Expected O, but got Unknown
		((BaseUnityPlugin)this).Logger.LogInfo((object)"BloodyCheckpoints mod loaded!");
		harmony = new Harmony("bloodycheckpoints.ultranoob.ultrakill");
		harmony.PatchAll();
	}
}
[HarmonyPatch(typeof(CheckPoint), "ActivateCheckPoint")]
public static class CheckPoint_ActivateCheckPoint_Patch
{
	private static void Postfix(CheckPoint __instance)
	{
		if ((Object)(object)MonoSingleton<NewMovement>.Instance != (Object)null)
		{
			MonoSingleton<NewMovement>.Instance.FullHeal(false);
			MonoSingleton<NewMovement>.Instance.FullStamina();
		}
	}
}