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 SevenNationMod v1.0.0
SevenNationMod.dll
Decompiled 2 years agousing System.Diagnostics; using System.IO; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; using BepInEx; using BepInEx.Logging; using HarmonyLib; using LCSoundTool; using SevenNationMod.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("SevenNationMod")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("SevenNationMod")] [assembly: AssemblyCopyright("Copyright © 2023")] [assembly: AssemblyTrademark("")] [assembly: ComVisible(false)] [assembly: Guid("2afb415d-061a-4239-b44f-4fc309e7a8f1")] [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 SevenNationMod { [BepInPlugin("mypoorprograming.yay", "Seven Nation Jester", "1.0.0")] public class BaseClass : BaseUnityPlugin { private const string modGUID = "mypoorprograming.yay"; private const string modName = "Seven Nation Jester"; private const string modVersion = "1.0.0"; private readonly Harmony harmony = new Harmony("mypoorprograming.yay"); internal ManualLogSource nls; public static BaseClass Instance { get; private set; } public AudioClip Open { get; private set; } private void Awake() { if (Object.op_Implicit((Object)(object)(Instance = null))) { Instance = this; } nls = Logger.CreateLogSource("mypoorprograming.yay"); nls.LogInfo((object)"I hope you are read to hear some rock music"); harmony.PatchAll(); Open = SoundTool.GetAudioClip(Path.GetDirectoryName(((BaseUnityPlugin)this).Info.Location), "Open.wav"); harmony.PatchAll(typeof(JesterAIPatch)); harmony.PatchAll(typeof(BaseClass)); nls.LogInfo((object)"Mod is Loaded. Go find a Jester"); } } } namespace SevenNationMod.Patches { [HarmonyPatch(typeof(JesterAI))] internal class JesterAIPatch { [HarmonyPatch("Start")] [HarmonyPrefix] private static void JesterRockPatch(ref AudioClip ___popGoesTheWeaselTheme, ref AudioClip ___screamingSFX, ref float ___popUpTimer) { ___popUpTimer = 50f; ___popGoesTheWeaselTheme = BaseClass.Instance.Open; } } }