Decompiled source of Slams Bonanza SoundPack v0.2.1

SlamsBonanzaSoundPack.dll

Decompiled 9 months ago
using 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("SlamsBonanzaSoundPack")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("SlamsBonanzaSoundPack")]
[assembly: AssemblyCopyright("Copyright ©  2024")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("78311B29-FF54-47C3-9E42-BBBF55F0B490")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace SlamsBonanzaSoundPack;

[BepInPlugin("Slam.Slams_Bonanza_SoundPack", "Slam's Bonanza Sound Pack", "0.2.1")]
public class Plugin : BaseUnityPlugin
{
	private const string modGUID = "Slam.Slams_Bonanza_SoundPack";

	private const string modName = "Slam's Bonanza Sound Pack";

	private const string modVersion = "0.2.1";

	private readonly Harmony harmony = new Harmony("Slam.Slams_Bonanza_SoundPack");

	private static Plugin instance;

	public ManualLogSource mls;

	private void Awake()
	{
		if ((Object)(object)instance == (Object)null)
		{
			instance = this;
		}
		mls = Logger.CreateLogSource("Slam.Slams_Bonanza_SoundPack");
		mls.LogInfo((object)"Slam's Bonanza SoundPack has loaded!");
		AudioClip audioClip = SoundTool.GetAudioClip("Slam-Slams_Bonanza_SoundPack", "JackInTheBoxTheme.mp3");
		AudioClip audioClip2 = SoundTool.GetAudioClip("Slam-Slams_Bonanza_SoundPack", "Pop1.mp3");
		AudioClip audioClip3 = SoundTool.GetAudioClip("Slam-Slams_Bonanza_SoundPack", "Chitter1.wav");
		AudioClip audioClip4 = SoundTool.GetAudioClip("Slam-Slams_Bonanza_SoundPack", "Chitter2.wav");
		AudioClip audioClip5 = SoundTool.GetAudioClip("Slam-Slams_Bonanza_SoundPack", "Chitter3.wav");
		AudioClip audioClip6 = SoundTool.GetAudioClip("Slam-Slams_Bonanza_SoundPack", "AngryScreech.wav");
		AudioClip audioClip7 = SoundTool.GetAudioClip("Slam-Slams_Bonanza_SoundPack", "AngryScreech2.wav");
		AudioClip audioClip8 = SoundTool.GetAudioClip("Slam-Slams_Bonanza_SoundPack", "BugDie.wav");
		AudioClip audioClip9 = SoundTool.GetAudioClip("Slam-Slams_Bonanza_SoundPack", "ShovelHitDefault.wav");
		AudioClip audioClip10 = SoundTool.GetAudioClip("Slam-Slams_Bonanza_SoundPack", "ShovelHitDefault2.wav");
		AudioClip audioClip11 = SoundTool.GetAudioClip("Slam-Slams_Bonanza_SoundPack", "DropMetalObject3.wav");
		AudioClip audioClip12 = SoundTool.GetAudioClip("Slam-Slams_Bonanza_SoundPack", "AirHorn1.wav");
		AudioClip audioClip13 = SoundTool.GetAudioClip("Slam-Slams_Bonanza_SoundPack", "AirHornFar.wav");
		AudioClip audioClip14 = SoundTool.GetAudioClip("Slam-Slams_Bonanza_SoundPack", "AQuickBreakVinyl.mp3");
		AudioClip audioClip15 = SoundTool.GetAudioClip("Slam-Slams_Bonanza_SoundPack", "DieHouseVinyl.mp3");
		AudioClip audioClip16 = SoundTool.GetAudioClip("Slam-Slams_Bonanza_SoundPack", "FloralFuryVinyl.mp3");
		AudioClip audioClip17 = SoundTool.GetAudioClip("Slam-Slams_Bonanza_SoundPack", "FunfairFeverVinyl.mp3");
		AudioClip audioClip18 = SoundTool.GetAudioClip("Slam-Slams_Bonanza_SoundPack", "InkwellHellVinyl.mp3");
		AudioClip audioClip19 = SoundTool.GetAudioClip("Slam-Slams_Bonanza_SoundPack", "InkwellIsleThreeVinyl.mp3");
		AudioClip audioClip20 = SoundTool.GetAudioClip("Slam-Slams_Bonanza_SoundPack", "OneHellOfATimeVinyl.mp3");
		AudioClip audioClip21 = SoundTool.GetAudioClip("Slam-Slams_Bonanza_SoundPack", "RailroadWrathVinyl.mp3");
		AudioClip audioClip22 = SoundTool.GetAudioClip("Slam-Slams_Bonanza_SoundPack", "TheEndVinyl.mp3");
		AudioClip audioClip23 = SoundTool.GetAudioClip("Slam-Slams_Bonanza_SoundPack", "TheMausoleumVinyl.mp3");
		AudioClip audioClip24 = SoundTool.GetAudioClip("Slam-Slams_Bonanza_SoundPack", "BakingTheWondertartVinyl.mp3");
		AudioClip audioClip25 = SoundTool.GetAudioClip("Slam-Slams_Bonanza_SoundPack", "BootleggerBoogieVinyl.mp3");
		AudioClip audioClip26 = SoundTool.GetAudioClip("Slam-Slams_Bonanza_SoundPack", "ChefSaltbakerVinyl.mp3");
		AudioClip audioClip27 = SoundTool.GetAudioClip("Slam-Slams_Bonanza_SoundPack", "HighNoonHooplaVinyl.mp3");
		AudioClip audioClip28 = SoundTool.GetAudioClip("Slam-Slams_Bonanza_SoundPack", "InkwellIsleFourVinyl.mp3");
		SoundTool.ReplaceAudioClip("JackInTheBoxTheme", audioClip);
		SoundTool.ReplaceAudioClip("Pop1", audioClip2);
		SoundTool.ReplaceAudioClip("Chitter1", audioClip3);
		SoundTool.ReplaceAudioClip("Chitter2", audioClip4);
		SoundTool.ReplaceAudioClip("Chitter3", audioClip5);
		SoundTool.ReplaceAudioClip("AngryScreech", audioClip6);
		SoundTool.ReplaceAudioClip("AngryScreech2", audioClip7);
		SoundTool.ReplaceAudioClip("BugDie", audioClip8);
		SoundTool.ReplaceAudioClip("ShovelHitDefault", audioClip9);
		SoundTool.ReplaceAudioClip("ShovelHitDefault2", audioClip10);
		SoundTool.ReplaceAudioClip("DropMetalObject3", audioClip11);
		SoundTool.ReplaceAudioClip("AirHorn1", audioClip12);
		SoundTool.ReplaceAudioClip("AirHornFar", audioClip13);
		SoundTool.ReplaceAudioClip("RecordPlayerJazz", audioClip14, 0.067f);
		SoundTool.ReplaceAudioClip("RecordPlayerJazz", audioClip15, 0.067f);
		SoundTool.ReplaceAudioClip("RecordPlayerJazz", audioClip16, 0.067f);
		SoundTool.ReplaceAudioClip("RecordPlayerJazz", audioClip17, 0.067f);
		SoundTool.ReplaceAudioClip("RecordPlayerJazz", audioClip18, 0.067f);
		SoundTool.ReplaceAudioClip("RecordPlayerJazz", audioClip19, 0.067f);
		SoundTool.ReplaceAudioClip("RecordPlayerJazz", audioClip20, 0.067f);
		SoundTool.ReplaceAudioClip("RecordPlayerJazz", audioClip21, 0.067f);
		SoundTool.ReplaceAudioClip("RecordPlayerJazz", audioClip22, 0.062f);
		SoundTool.ReplaceAudioClip("RecordPlayerJazz", audioClip23, 0.067f);
		SoundTool.ReplaceAudioClip("RecordPlayerJazz", audioClip24, 0.067f);
		SoundTool.ReplaceAudioClip("RecordPlayerJazz", audioClip25, 0.067f);
		SoundTool.ReplaceAudioClip("RecordPlayerJazz", audioClip26, 0.067f);
		SoundTool.ReplaceAudioClip("RecordPlayerJazz", audioClip27, 0.067f);
		SoundTool.ReplaceAudioClip("RecordPlayerJazz", audioClip28, 0.067f);
		harmony.PatchAll(typeof(Plugin));
	}
}