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.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: AssemblyTitle("CosmeticUnlocker")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("CosmeticUnlocker")]
[assembly: AssemblyCopyright("Copyright © 2026")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("e204f39c-c28b-445d-93eb-c9d6d8670568")]
[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")]
[BepInPlugin("com.maliprime.ultimateunlocker", "MaliPrime Ultimate Unlocker", "1.0.0")]
public class UltimateUnlocker : BaseUnityPlugin
{
public void Awake()
{
Harmony.CreateAndPatchAll(typeof(UltimateUnlocker), (string)null);
}
[HarmonyPostfix]
[HarmonyPatch(typeof(AchievementManager), "OnUserStatsReceived")]
private static void PostfixOnUserStatsReceived(AchievementManager __instance, bool success)
{
if (success)
{
AchievementManager.UnlockAll();
int num = Traverse.Create((object)__instance).Field("ascentAchievements").GetValue<ACHIEVEMENTTYPE[]>()
.Length;
AchievementManager.GiveAscentLevel(num + 1);
}
}
}