Please disclose if any significant portion of your mod was created using AI tools by adding the 'AI Generated' category. Failing to do so may result in the mod being removed from Thunderstore.
Decompiled source of EnableAchievments v1.0.0
EnableAchievments.dll
Decompiled 2 weeks agousing System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; using BepInEx; using BepInEx.Logging; using HarmonyLib; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)] [assembly: AssemblyTitle("EnableAchievments")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("EnableAchievments")] [assembly: AssemblyCopyright("Copyright © 2026")] [assembly: AssemblyTrademark("")] [assembly: ComVisible(false)] [assembly: Guid("2CE05769-CC12-40A2-8916-CE8F264ABF25")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")] [assembly: AssemblyVersion("1.0.0.0")] namespace EnableAchievments { [BepInPlugin("yorimor.enableAchievments", "EnableAchievments", "1.0.0")] public class Main : BaseUnityPlugin { private const string pluginGUID = "yorimor.enableAchievments"; private const string pluginName = "EnableAchievments"; private const string pluginVersion = "1.0.0"; private readonly Harmony HarmonyInstance = new Harmony("yorimor.enableAchievments"); public static ManualLogSource logger = Logger.CreateLogSource("EnableAchievments"); public void Awake() { logger.LogInfo((object)"Plugin loaded!"); Assembly executingAssembly = Assembly.GetExecutingAssembly(); HarmonyInstance.PatchAll(executingAssembly); } } } namespace EnableAchievments.Patches { [HarmonyPatch(typeof(Achievements))] public class AchievmentsPatches { [HarmonyPatch("CanGetAchievements")] [HarmonyPostfix] public static void PatchCanGetAchievements(bool cheated, ref bool __result) { __result = true; } [HarmonyPatch("IsCheatedAtAll")] [HarmonyPostfix] public static void PatchIsCheatedAtAll(ref bool __result) { __result = false; } [HarmonyPatch("IsWorldCheated")] [HarmonyPostfix] public static void PatchIsWorldCheated(ref bool __result) { __result = false; } } }