Decompiled source of EasierSkillCurve v0.1.2

EasierSkillCurve.dll

Decompiled 6 hours ago
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using BepInEx;
using BepInEx.Logging;
using HarmonyLib;
using UnityEngine;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
[assembly: AssemblyTitle("EasierSkillCurve")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("EasierSkillCurve")]
[assembly: AssemblyCopyright("Copyright ©  2025")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("260c10ac-6c86-41da-be4b-e5891db32a21")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace MyBepInExPlugin;

[BepInPlugin("EasierSkillCurve", "EasierSkillCurve", "0.1.0")]
public class Main : BaseUnityPlugin
{
	[HarmonyPatch(typeof(Skill), "GetNextLevelRequirement")]
	public static class Patch_Skill_GetNextLevelRequirement
	{
		public static bool Prefix(Skill __instance, ref float __result)
		{
			__result = Mathf.Floor(__instance.m_level + 1f);
			return false;
		}
	}

	private const string pluginGUID = "EasierSkillCurve";

	private const string pluginName = "EasierSkillCurve";

	private const string pluginVersion = "0.1.0";

	private readonly Harmony HarmonyInstance = new Harmony("EasierSkillCurve");

	public static ManualLogSource logger = Logger.CreateLogSource("EasierSkillCurve");

	public void Awake()
	{
		Assembly executingAssembly = Assembly.GetExecutingAssembly();
		HarmonyInstance.PatchAll(executingAssembly);
	}
}