Decompiled source of ZeroStatLoss v1.0.0

ZeroStatLoss.dll

Decompiled a day ago
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using BepInEx;
using HarmonyLib;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
[assembly: AssemblyTitle("ZeroStatLoss")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("ZeroStatLoss")]
[assembly: AssemblyCopyright("Copyright ©  2026")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("3e18b03c-509c-4eaa-a164-dbcac6e56740")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace ZeroDeathSkillLoss;

[BepInPlugin("robit.zeroskillloss", "Zero Skill Loss On Death", "1.0.0")]
public class ZeroDeathSkillLossPlugin : BaseUnityPlugin
{
	public const string PluginGUID = "robit.zeroskillloss";

	public const string PluginName = "Zero Skill Loss On Death";

	public const string PluginVersion = "1.0.0";

	private Harmony _harmony;

	private void Awake()
	{
		//IL_0006: Unknown result type (might be due to invalid IL or missing references)
		//IL_0010: Expected O, but got Unknown
		_harmony = new Harmony("robit.zeroskillloss");
		_harmony.PatchAll();
		((BaseUnityPlugin)this).Logger.LogInfo((object)"Zero Skill Loss On Death v1.0.0 loaded!");
	}

	private void OnDestroy()
	{
		Harmony harmony = _harmony;
		if (harmony != null)
		{
			harmony.UnpatchSelf();
		}
	}
}
[HarmonyPatch(typeof(Skills), "OnDeath")]
internal static class SkillsOnDeathPatch
{
	[HarmonyPrefix]
	private static bool Prefix()
	{
		return false;
	}
}