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 Jesters Way v1.0.0
BepInEx/plugins/Goblin.dll
Decompiled 2 years agousing System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; using BepInEx; using BepInEx.Logging; using HarmonyLib; using JesterMusic; using LC_API.BundleAPI; 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("Goblin")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("Goblin")] [assembly: AssemblyCopyright("Copyright © 2023")] [assembly: AssemblyTrademark("")] [assembly: ComVisible(false)] [assembly: Guid("550de047-daa4-4fda-9dfa-0b34a799754e")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")] [assembly: AssemblyVersion("1.0.0.0")] namespace MyWay { [BepInPlugin("My.Way", "MyWay", "1.0.0.0")] public class MyWayBase : BaseUnityPlugin { private const string modGUID = "My.Way"; private const string modName = "MyWay"; private const string modVersion = "1.0.0.0"; private readonly Harmony harmony = new Harmony("My.Way"); private static MyWayBase Instance; internal ManualLogSource mls; private void Awake() { if ((Object)(object)Instance == (Object)null) { Instance = this; } mls = Logger.CreateLogSource("My.Way"); mls.LogInfo((object)"My Way has awoken:"); harmony.PatchAll(typeof(MyWayBase)); harmony.PatchAll(typeof(AudioPatch)); } } } namespace JesterMusic { [HarmonyPatch(typeof(JesterAI), "Start")] internal class AudioPatch { private static void Postfix(JesterAI __instance) { __instance.screamingSFX = BundleLoader.GetLoadedAsset<AudioClip>("Assets/assetbundle/Audio/MyWay.wav"); } } }