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 GokuSFXMod v1.0.0
BepInEx/plugins/GokuSFX/UltraInstinctIntense.dll
Decompiled 2 years agousing System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; using BepInEx; using BepInEx.Logging; using HarmonyLib; using UltraInstinctIntense.Patches; using UnityEngine; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] [assembly: AssemblyTitle("UltraInstinctIntense")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("UltraInstinctIntense")] [assembly: AssemblyCopyright("Copyright © 2025")] [assembly: AssemblyTrademark("")] [assembly: ComVisible(false)] [assembly: Guid("3fd1a320-9d58-4e5f-b2f8-602792fc68ca")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")] [assembly: AssemblyVersion("1.0.0.0")] namespace UltraInstinctIntense { [BepInPlugin("com.literallytoast.plugins.UIfearreplace", "Ultra Instinct Intensity", "1.0.0")] [BepInProcess("Lethal Company.exe")] public class UltraInstinctIntensePlugin : BaseUnityPlugin { private const string modGUID = "com.literallytoast.plugins.UIfearreplace"; private const string modName = "Ultra Instinct Intensity"; private const string modVersion = "1.0.0"; private readonly Harmony harmony = new Harmony("com.literallytoast.plugins.UIfearreplace"); internal static List<AudioClip> SoundFX; private static UltraInstinctIntensePlugin Instance; internal ManualLogSource mls; internal static AudioClip intensityClip; internal static AssetBundle Bundle; private void Awake() { if ((Object)(object)Instance == (Object)null) { Instance = this; } mls = Logger.CreateLogSource("com.literallytoast.plugins.UIfearreplace"); ((BaseUnityPlugin)this).Logger.LogInfo((object)"Loading plugin..."); harmony.PatchAll(typeof(UltraInstinctIntensePlugin)); harmony.PatchAll(typeof(SoundManagerPatch)); string location = ((BaseUnityPlugin)Instance).Info.Location; location = location.TrimEnd("UltraInstinctIntense.dll".ToCharArray()); SoundFX = new List<AudioClip>(); Bundle = AssetBundle.LoadFromFile(location + "gokusfxmod"); if ((Object)(object)Bundle != (Object)null) { SoundFX = Bundle.LoadAllAssets<AudioClip>().ToList(); ((BaseUnityPlugin)this).Logger.LogInfo((object)Bundle.LoadAllAssets<AudioClip>()); for (int i = 0; i < SoundFX.Count; i++) { ((BaseUnityPlugin)this).Logger.LogInfo((object)((Object)SoundFX[i]).name); } intensityClip = SoundFX[4]; ((BaseUnityPlugin)this).Logger.LogInfo((object)"Loaded asset bundle successfully."); } else { ((BaseUnityPlugin)this).Logger.LogError((object)"Asset bundle failed to load. Maybe it was put in the wrong directory?"); } ((BaseUnityPlugin)this).Logger.LogInfo((object)"You are not safe. Mod successfully loaded! Have fun! c:"); } } } namespace UltraInstinctIntense.Patches { [HarmonyPatch(typeof(SoundManager))] internal class SoundManagerPatch { [HarmonyPatch("Start")] [HarmonyPostfix] private static void UpdateUltraInstinct(SoundManager __instance) { __instance.highAction2.clip = UltraInstinctIntensePlugin.intensityClip; } } }