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("ClassLibrary2")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("ClassLibrary2")]
[assembly: AssemblyCopyright("Copyright © 2025")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("4a16e9b5-dad8-43d9-90d5-8f69491d8dc8")]
[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.govnochist.peakunlock", "PEAK Unlocker", "1.0")]
public class PEAKUnlocker : BaseUnityPlugin
{
[HarmonyPatch(typeof(AchievementManager), "IsAchievementUnlocked")]
private static class Patch
{
private static bool Prefix(ACHIEVEMENTTYPE achievementType, ref bool __result)
{
//IL_0000: Unknown result type (might be due to invalid IL or missing references)
if ((int)achievementType != 0)
{
__result = true;
return false;
}
return true;
}
}
private void Awake()
{
//IL_0005: Unknown result type (might be due to invalid IL or missing references)
new Harmony("com.govnochist.peakunlock.patches").PatchAll();
((BaseUnityPlugin)this).Logger.LogInfo((object)"PEAK Unlocker started");
}
}