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 21WhatJester v1.0.1
BepInEx/plugins/21WhatJester/21What.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 UnityEngine; using __21What; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] [assembly: AssemblyTitle("21What")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("21What")] [assembly: AssemblyCopyright("Copyright © 2024")] [assembly: AssemblyTrademark("")] [assembly: ComVisible(false)] [assembly: Guid("ffcfe716-151f-4488-b640-6209998a509b")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")] [assembly: AssemblyVersion("1.0.0.0")] namespace __21What { [BepInPlugin("KurisuBot.21WhatJester", "21What", "1.0.0")] public class Plugin : BaseUnityPlugin { private const string modGUID = "KurisuBot.21WhatJester"; private const string modName = "21What"; private const string modVersion = "1.0.0"; public static Plugin instance; private readonly Harmony harmony = new Harmony("KurisuBot.21WhatJester"); internal ManualLogSource mls; internal static List<AudioClip> LK; internal static AssetBundle Bundle; private void Awake() { if ((Object)(object)instance == (Object)null) { instance = this; } mls = Logger.CreateLogSource("KurisuBot.21WhatJester"); mls.LogInfo((object)"21WhatJester Loading . . . "); string location = ((BaseUnityPlugin)instance).Info.Location; location = location.TrimEnd("21WhatJester.dll".ToCharArray()); Harmony.CreateAndPatchAll(Assembly.GetExecutingAssembly(), (string)null); LK = new List<AudioClip>(); Bundle = AssetBundle.LoadFromFile(location + "21What"); if ((Object)(object)Bundle != (Object)null) { LK = Bundle.LoadAllAssets<AudioClip>().ToList(); } else { mls.LogError((object)"Failed to load asset bundle (21What)"); } mls.LogInfo((object)"21WhatJester Loaded!"); } public static void Log(string message) { ((BaseUnityPlugin)instance).Logger.LogInfo((object)message); } } } namespace _21What.Patches { [HarmonyPatch(typeof(JesterAI))] internal class JesterMusicPatch { [HarmonyPatch("Start")] [HarmonyPostfix] private static void Gohan(JesterAI __instance) { __instance.popGoesTheWeaselTheme = Plugin.LK[0]; Plugin.Log("************JESTER SUCCESSFULLY PATCHED************"); } } }