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 Wes Tweaks v1.0.1
WesTweaks.dll
Decompiled 2 years agousing System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using BepInEx; using BepInEx.Unity.Mono; using HarmonyLib; 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("EyesAndEars")] [assembly: AssemblyConfiguration("Release")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0")] [assembly: AssemblyProduct("EyesAndEars")] [assembly: AssemblyTitle("EyesAndEars")] [assembly: AssemblyVersion("1.0.0.0")] [BepInPlugin("com.wes.repomod", "Wes' Tweaks", "1.0.1")] [BepInProcess("REPO.exe")] public class WesTweaks : BaseUnityPlugin { [HarmonyPatch(typeof(EnemyVision))] [HarmonyPatch("Awake")] public static class EnemyVisionPatchAwakeCall { public static void Postfix(EnemyVision __instance) { __instance.VisionDistance = 15f; __instance.VisionDistanceClose = 4.5f; __instance.VisionDistanceCloseCrouch = 2.5f; __instance.VisionDotStanding = 0.35f; __instance.VisionDotCrouch = 0.5f; Debug.Log((object)"EnemyVision distances modified successfully!"); } } [HarmonyPatch(typeof(EnemyVision))] [HarmonyPatch("Vision")] public static class EnemyVisionPatchVisionCall { public static void Postfix(EnemyVision __instance) { __instance.VisionDistance = 15f; __instance.VisionDistanceClose = 4.5f; __instance.VisionDistanceCloseCrouch = 2.5f; __instance.VisionDotStanding = 0.35f; __instance.VisionDotCrouch = 0.5f; Debug.Log((object)"EnemyVision distances modified successfully!"); } } [HarmonyPatch(typeof(FlashlightController))] [HarmonyPatch("Update")] public static class FlashlightPatch { private static bool hasLogged; public static void Postfix(FlashlightController __instance) { if ((Object)(object)__instance.spotlight != (Object)null) { Light spotlight = __instance.spotlight; spotlight.intensity *= 1.6f; if (!hasLogged) { Debug.Log((object)"Flashlight spotlight.intensity increased by 1.6x! This implementation may cause you some lag."); hasLogged = true; } } else if (!hasLogged) { Debug.LogError((object)"Flashlight spotlight component not found!"); hasLogged = true; } } } private void Awake() { //IL_0005: Unknown result type (might be due to invalid IL or missing references) new Harmony("com.wes.repomod").PatchAll(); ((BaseUnityPlugin)this).Logger.LogInfo((object)"Wes' tweaks loaded successfully!"); } }