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 NoPenaltyNoLCAPI v1.0.2
NoPenaltyNoLCAPI/bin/Release/net48/NoPenaltyNoLCAPI.dll
Decompiled 2 years agousing System; using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using System.Security; using System.Security.Permissions; using BepInEx; using HarmonyLib; using Microsoft.CodeAnalysis; using TMPro; using UnityEngine; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)] [assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")] [assembly: AssemblyCompany("NoPenaltyNoLCAPI")] [assembly: AssemblyConfiguration("Release")] [assembly: AssemblyDescription("NoPenalty without using LCAPI")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0+43206f0475d7dae18e393eaa115cfd192399712f")] [assembly: AssemblyProduct("NoPenaltyNoLCAPI")] [assembly: AssemblyTitle("NoPenaltyNoLCAPI")] [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] [assembly: AssemblyVersion("1.0.0.0")] [module: UnverifiableCode] [module: RefSafetyRules(11)] namespace Microsoft.CodeAnalysis { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] internal sealed class EmbeddedAttribute : Attribute { } } namespace System.Runtime.CompilerServices { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] [AttributeUsage(AttributeTargets.Module, AllowMultiple = false, Inherited = false)] internal sealed class RefSafetyRulesAttribute : Attribute { public readonly int Version; public RefSafetyRulesAttribute(int P_0) { Version = P_0; } } } namespace NoPenaltyNoLCAPI { [BepInPlugin("NoPenaltyNoLCAPI", "NoPenaltyNoLCAPI", "1.0.0")] public class Plugin : BaseUnityPlugin { private void Awake() { ((BaseUnityPlugin)this).Logger.LogInfo((object)"Plugin NoPenaltyNoLCAPI is loaded!"); } } [HarmonyPatch] internal class PenaltyPatches { [HarmonyPatch(typeof(HUDManager), "ApplyPenalty")] [HarmonyPrefix] public static bool ApplyPenalty() { return false; } [HarmonyPatch(typeof(HUDManager), "Awake")] [HarmonyPostfix] public static void ResizeLists2(ref HUDManager __instance) { ((Component)((TMP_Text)__instance.statsUIElements.penaltyTotal).transform.parent.parent).gameObject.SetActive(false); } } public static class PluginInfo { public const string PLUGIN_GUID = "NoPenaltyNoLCAPI"; public const string PLUGIN_NAME = "NoPenaltyNoLCAPI"; public const string PLUGIN_VERSION = "1.0.0"; } }