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 Personal Scan Fix v1.0.0
BepInEx\plugins\PersonalScanFix\PersonalScanFix.dll
Decompiled 19 hours agousing System; using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using BepInEx; using BepInEx.Logging; using HarmonyLib; using Microsoft.CodeAnalysis; using UnityEngine; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)] [assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")] [assembly: AssemblyCompany("PersonalScanFix")] [assembly: AssemblyConfiguration("Release")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0")] [assembly: AssemblyProduct("Personal Scan Fix")] [assembly: AssemblyTitle("PersonalScanFix")] [assembly: AssemblyVersion("1.0.0.0")] [module: RefSafetyRules(11)] namespace Microsoft.CodeAnalysis { [CompilerGenerated] [Embedded] internal sealed class EmbeddedAttribute : Attribute { } } namespace System.Runtime.CompilerServices { [CompilerGenerated] [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 PersonalScanFix { [BepInPlugin("com.commandermechavala.personalscanfix", "Personal Scan Fix", "1.0.0")] public class Plugin : BaseUnityPlugin { public const string Guid = "com.commandermechavala.personalscanfix"; public const string Name = "Personal Scan Fix"; public const string Version = "1.0.0"; internal static ManualLogSource Log; private void Awake() { //IL_0010: Unknown result type (might be due to invalid IL or missing references) Log = ((BaseUnityPlugin)this).Logger; new Harmony("com.commandermechavala.personalscanfix").PatchAll(); Log.LogInfo((object)"Personal Scan Fix v1.0.0 loaded — personal scanner reload fix is active."); } } } namespace PersonalScanFix.Patches { [HarmonyPatch(typeof(HUDManager))] internal static class HUDManagerPatch { [HarmonyPatch("PingScan_performed")] [HarmonyPrefix] private static bool PingScan_performed_Prefix(HUDManager __instance) { return (Object)(object)__instance == (Object)(object)HUDManager.Instance; } [HarmonyPatch("Start")] [HarmonyPostfix] private static void Start_Postfix(HUDManager __instance) { if (!((Object)(object)__instance != (Object)(object)HUDManager.Instance)) { Traverse val = Traverse.Create((object)__instance).Field("playerPingingScan"); if (val.FieldExists()) { val.SetValue((object)(-1f)); } } } } }