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 FrenBracken v1.0.0
FrenBracken.dll
Decompiled a year 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 FrenBracken.Patches; using HarmonyLib; 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("FrenBracken")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("FrenBracken")] [assembly: AssemblyCopyright("Copyright © 2024")] [assembly: AssemblyTrademark("")] [assembly: ComVisible(false)] [assembly: Guid("0f270ba5-54fa-4eac-8401-8f123e93a8f2")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")] [assembly: AssemblyVersion("1.0.0.0")] namespace FrenBracken { [BepInPlugin("God.FrenBracken", "Fren Bracken", "1.0.0")] public class FrenBrackenBase : BaseUnityPlugin { private const string modGUID = "God.FrenBracken"; private const string modName = "Fren Bracken"; private const string modVersion = "1.0.0"; private readonly Harmony harmony = new Harmony("God.FrenBracken"); internal static FrenBrackenBase Instance; internal ManualLogSource mls; internal static List<AudioClip> soundFx; internal static AssetBundle Bundle; private void Awake() { if ((Object)(object)Instance == (Object)null) { Instance = this; } mls = Logger.CreateLogSource("God.FrenBracken"); mls.LogInfo((object)"Fren Bracken awaken."); harmony.PatchAll(typeof(FrenBrackenBase)); harmony.PatchAll(typeof(FlowermanAIPatch)); soundFx = new List<AudioClip>(); string location = ((BaseUnityPlugin)Instance).Info.Location; location = location.TrimEnd("FrenBracken.dll".ToCharArray()); Bundle = AssetBundle.LoadFromFile(location + "fren"); if ((Object)(object)Bundle != (Object)null) { soundFx = Bundle.LoadAllAssets<AudioClip>().ToList(); } else { mls.LogError((object)"Failed to load asset bundle!"); } } } } namespace FrenBracken.Patches { [HarmonyPatch(typeof(FlowermanAI))] internal class FlowermanAIPatch { [HarmonyPatch("Start")] [HarmonyPostfix] private static void SoundOverride(FlowermanAI __instance) { __instance.crackNeckSFX = FrenBrackenBase.soundFx[0]; __instance.crackNeckAudio.clip = FrenBrackenBase.soundFx[0]; } } }