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 CustomHonks v1.0.1
custom honks.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 LCSoundTool; 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("custom honks")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("custom honks")] [assembly: AssemblyCopyright("Copyright © 2023")] [assembly: AssemblyTrademark("")] [assembly: ComVisible(false)] [assembly: Guid("9a7e4d9f-e42b-4f7c-ac5a-6aae5d075974")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")] [assembly: AssemblyVersion("1.0.0.0")] namespace custom_honks; [BepInPlugin("Shroom.CustomHonks", "Custom Honks", "1.0.0")] public class CustomHonks : BaseUnityPlugin { private const string modGUID = "Shroom.CustomHonks"; private const string modName = "Custom Honks"; private const string modVersion = "1.0.0"; private readonly Harmony harmony = new Harmony("Shroom.CustomHonks"); private static CustomHonks Instance; internal ManualLogSource mls; private AudioClip honkClose; private AudioClip honkFar; private void Awake() { if ((Object)(object)Instance == (Object)null) { Instance = this; } mls = Logger.CreateLogSource("Shroom.CustomHonks"); mls.LogInfo((object)"CustomHonks loaded"); harmony.PatchAll(typeof(CustomHonks)); } private void start() { honkClose = SoundTool.GetAudioClip("AlcoholicShroom-CustomHonks", "CustomHonk", "close.wav"); honkFar = SoundTool.GetAudioClip("AlcoholicShroom-CustomHonks", "CustomHonk", "far.wav"); SoundTool.ReplaceAudioClip("ClownHorn1", honkClose); SoundTool.ReplaceAudioClip("ClownFar", honkFar); } }