Decompiled source of XueBug v0.2.0

XueBug.dll

Decompiled 8 months ago
using System.Diagnostics;
using System.IO;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using BepInEx;
using BepInEx.Configuration;
using HarmonyLib;
using UnityEngine;
using XueBug.Configuration;
using XueBug.Patches;
using XueBug.Plugins;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: AssemblyTitle("XueBug")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("XueBug")]
[assembly: AssemblyCopyright("Copyright ©  2024")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("fbdc4b7a-3521-42a9-b765-f167261b0822")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace XueBug.Plugins
{
	[BepInPlugin("HuaPiaoPiao.XueBug", "XueBug", "0.2.0")]
	public class XueBugBase : BaseUnityPlugin
	{
		private const string modGUID = "HuaPiaoPiao.XueBug";

		private const string modName = "XueBug";

		private const string modVersion = "0.2.0";

		internal static AssetBundle xueHuaBundle;

		internal static AssetBundle xueHuaOrigBundle;

		internal static AudioClip[] xueHuaSoundFX;

		internal static AudioClip[] xueHuaOrigSoundFX;

		internal static AudioClip[] new_chitterSFX;

		internal static AudioClip[] new_angryScreechSFX;

		internal static AssetBundle otelulGalatiBundle;

		internal static AssetBundle rapBattleBundle;

		internal static AssetBundle mansNotHotBundle;

		internal static AssetBundle triPoloskiBundle;

		internal static AssetBundle allStarBundle;

		internal static AssetBundle broMomentoBundle;

		internal static AudioClip[] otelulGalatiSoundFX;

		internal static AudioClip[] rapBattleSoundFX;

		internal static AudioClip[] mansNotHotSoundFX;

		internal static AudioClip[] triPoloskiSoundFX;

		internal static AudioClip[] allStarSoundFX;

		internal static AudioClip[] broMomentoSoundFX;

		internal static AudioClip[] new_musicAudios;

		internal static AssetBundle beatboxBundle;

		internal static AssetBundle beatboxTusindBundle;

		internal static AudioClip[] beatboxSoundFX;

		internal static AudioClip[] beatboxTusindSoundFX;

		internal static AudioClip[] new_frightenSFX;

		internal static AudioClip new_puff;

		internal static AssetBundle bingChillingBundle;

		internal static AudioClip[] bingChillingSoundFX;

		internal static AudioClip[] new_springNoises;

		private readonly Harmony harmony = new Harmony("HuaPiaoPiao.XueBug");

		public static Config MyConfig { get; internal set; }

		private void Awake()
		{
			MyConfig = new Config(((BaseUnityPlugin)this).Config);
			harmony.PatchAll(typeof(XueBugBase));
			harmony.PatchAll(typeof(HoarderBugAIPatch));
			harmony.PatchAll(typeof(BoomboxItemPatch));
			harmony.PatchAll(typeof(PufferAIPatch));
			harmony.PatchAll(typeof(SpringManAIPatch));
			string location = ((BaseUnityPlugin)this).Info.Location;
			location = location.TrimEnd("XueBug.dll".ToCharArray());
			if (MyConfig.configDisplayASCII.Value)
			{
				((BaseUnityPlugin)this).Logger.LogInfo((object)"...............................         .. .....-===---------.........         ..");
				((BaseUnityPlugin)this).Logger.LogInfo((object)"...............................         .....-============---=-......          ..");
				((BaseUnityPlugin)this).Logger.LogInfo((object)"...............................         ...-+++++===============-.....         ..");
				((BaseUnityPlugin)this).Logger.LogInfo((object)"................................. .. ....:=+++++++++++++==========:...         ..");
				((BaseUnityPlugin)this).Logger.LogInfo((object)"................................... ....-++++++++++++++++++========-..         ..");
				((BaseUnityPlugin)this).Logger.LogInfo((object)".......................................-++++++++++++++++++++========-...       ..");
				((BaseUnityPlugin)this).Logger.LogInfo((object)"......................................-===+++++++++++++++++==========:.....    ..");
				((BaseUnityPlugin)this).Logger.LogInfo((object)".....................................-============+==================-.....    ..");
				((BaseUnityPlugin)this).Logger.LogInfo((object)"....................................-=================================:......  ..");
				((BaseUnityPlugin)this).Logger.LogInfo((object)"...................................:==================================-....... ..");
				((BaseUnityPlugin)this).Logger.LogInfo((object)"...................................====================================..... . ..");
				((BaseUnityPlugin)this).Logger.LogInfo((object)".................................::====================================:.... . ..");
				((BaseUnityPlugin)this).Logger.LogInfo((object)"............::..................-=-= *####*+============================:.... ...");
				((BaseUnityPlugin)this).Logger.LogInfo((object)"................................:=+*###****++==========================-....   ..");
				((BaseUnityPlugin)this).Logger.LogInfo((object)"........:.......................-======++++++======+++***####*+========-...... ..");
				((BaseUnityPlugin)this).Logger.LogInfo((object)"..............:::..............:=====++++++=++=====+++=++++**#*+===---=-.:--.....");
				((BaseUnityPlugin)this).Logger.LogInfo((object)".......................:.......:-=== +#%%%##*+++===+++++++=========-----====-....");
				((BaseUnityPlugin)this).Logger.LogInfo((object)"...............................:-=====+++++++++===+++*##***+==--==-----====:.....");
				((BaseUnityPlugin)this).Logger.LogInfo((object)"...............................-=======++++++======+++++*#####*==------=++=:.....");
				((BaseUnityPlugin)this).Logger.LogInfo((object)"...............................-=====================+++++======-------=++=......");
				((BaseUnityPlugin)this).Logger.LogInfo((object)"..::::.........................:=================================------=+=:... ..");
				((BaseUnityPlugin)this).Logger.LogInfo((object)"...............................:-=======++========================-----=-:.... ..");
				((BaseUnityPlugin)this).Logger.LogInfo((object)"...............................:-======+===========+++============------:........");
				((BaseUnityPlugin)this).Logger.LogInfo((object)"....................::.........:-====+++==+=========+++================--::......");
				((BaseUnityPlugin)this).Logger.LogInfo((object)"................................-====+++++**++++**==++++==============--=-:-:....");
				((BaseUnityPlugin)this).Logger.LogInfo((object)"................................-===++++++++******++++++==============---=--:::..");
				((BaseUnityPlugin)this).Logger.LogInfo((object)"................................:===+++++++++*++++++++++===============------::::");
				((BaseUnityPlugin)this).Logger.LogInfo((object)".................................-==++=++++++++++++++++++===============----:::::");
				((BaseUnityPlugin)this).Logger.LogInfo((object)"..................................-=+++*###**++**++++++++++=======++===----------");
				((BaseUnityPlugin)this).Logger.LogInfo((object)"..................................-===++**#####%##%##*++++++++=+++++===--------::");
				((BaseUnityPlugin)this).Logger.LogInfo((object)".................................:++===+++***********+++++++++++**+========--::::");
				((BaseUnityPlugin)this).Logger.LogInfo((object)".................................=**+===+++****+++++++++++++++*#++========-------");
				((BaseUnityPlugin)this).Logger.LogInfo((object)"................................:+*#*==+++******++++++++++++***++==========------");
				((BaseUnityPlugin)this).Logger.LogInfo((object)"..............................::=+**#%*=+++*****++++++++++***++++=++======-------");
				((BaseUnityPlugin)this).Logger.LogInfo((object)"..............................=+++*###@*++++****+++++++***+++++++=========-------");
				((BaseUnityPlugin)this).Logger.LogInfo((object)"...............................--= *#+=*@%*+++++++++++**++++++++++=========------");
				((BaseUnityPlugin)this).Logger.LogInfo((object)"...............................--=+*===+====++++*****+++++++++++=========--------");
				((BaseUnityPlugin)this).Logger.LogInfo((object)"..............................:-== +#======++++*****++++++++++++==========-------");
				((BaseUnityPlugin)this).Logger.LogInfo((object)".............................:--==+*+===++++++*+++===++++++==============--------");
				((BaseUnityPlugin)this).Logger.LogInfo((object)".............................:-===+*======+++++===========================-------");
				((BaseUnityPlugin)this).Logger.LogInfo((object)"............................:--===+=====++================================-------");
				((BaseUnityPlugin)this).Logger.LogInfo((object)"............................---===**+=====================================-------");
				((BaseUnityPlugin)this).Logger.LogInfo((object)"..........................:----==+++-=====================================-------");
				((BaseUnityPlugin)this).Logger.LogInfo((object)"::::::::::::::...........:======++*++=++======================================== ");
			}
			if (Directory.Exists(location + "HoarderBugAI"))
			{
				if (MyConfig.configChitter.Value)
				{
					xueHuaBundle = AssetBundle.LoadFromFile(location + "HoarderBugAI\\chitterSFX");
				}
				if (MyConfig.configAngryScreech.Value)
				{
					xueHuaOrigBundle = AssetBundle.LoadFromFile(location + "HoarderBugAI\\angryScreechSFX");
				}
			}
			else
			{
				if (MyConfig.configChitter.Value)
				{
					xueHuaBundle = AssetBundle.LoadFromFile(location + "chitterSFX");
				}
				if (MyConfig.configAngryScreech.Value)
				{
					xueHuaOrigBundle = AssetBundle.LoadFromFile(location + "angryScreechSFX");
				}
			}
			if ((MyConfig.configChitter.Value && !Object.op_Implicit((Object)(object)xueHuaBundle)) || (MyConfig.configAngryScreech.Value && !Object.op_Implicit((Object)(object)xueHuaOrigBundle)))
			{
				((BaseUnityPlugin)this).Logger.LogError((object)"## Failed to load HoarderBugAI assets!");
				if (MyConfig.configChitter.Value && !Object.op_Implicit((Object)(object)xueHuaBundle))
				{
					((BaseUnityPlugin)this).Logger.LogError((object)"Failed to load chitterSFX asset bundle!");
				}
				if (MyConfig.configAngryScreech.Value && !Object.op_Implicit((Object)(object)xueHuaOrigBundle))
				{
					((BaseUnityPlugin)this).Logger.LogError((object)"Failed to load angryScreechSFX asset bundle!");
				}
			}
			else
			{
				if (MyConfig.configChitter.Value)
				{
					xueHuaSoundFX = (AudioClip[])(object)new AudioClip[1];
					xueHuaSoundFX = xueHuaBundle.LoadAllAssets<AudioClip>();
					new_chitterSFX = (AudioClip[])(object)new AudioClip[1];
					new_chitterSFX[0] = xueHuaSoundFX[0];
				}
				if (MyConfig.configAngryScreech.Value)
				{
					xueHuaOrigSoundFX = (AudioClip[])(object)new AudioClip[1];
					xueHuaOrigSoundFX = xueHuaOrigBundle.LoadAllAssets<AudioClip>();
					new_angryScreechSFX = (AudioClip[])(object)new AudioClip[1];
					new_angryScreechSFX[0] = xueHuaOrigSoundFX[0];
				}
				((BaseUnityPlugin)this).Logger.LogInfo((object)"HoarderBugAI sounds were loaded succesfully!");
			}
			if (Directory.Exists(location + "BoomboxItem"))
			{
				if (MyConfig.configMusicAudios0.Value)
				{
					otelulGalatiBundle = AssetBundle.LoadFromFile(location + "BoomboxItem\\musicAudios0");
				}
				if (MyConfig.configMusicAudios1.Value)
				{
					rapBattleBundle = AssetBundle.LoadFromFile(location + "BoomboxItem\\musicAudios1");
				}
				if (MyConfig.configMusicAudios2.Value)
				{
					mansNotHotBundle = AssetBundle.LoadFromFile(location + "BoomboxItem\\musicAudios2");
				}
				if (MyConfig.configMusicAudios3.Value)
				{
					triPoloskiBundle = AssetBundle.LoadFromFile(location + "BoomboxItem\\musicAudios3");
				}
				if (MyConfig.configMusicAudios4.Value)
				{
					allStarBundle = AssetBundle.LoadFromFile(location + "BoomboxItem\\musicAudios4");
				}
				if (MyConfig.configMusicAudios5.Value)
				{
					broMomentoBundle = AssetBundle.LoadFromFile(location + "BoomboxItem\\musicAudios5");
				}
			}
			else
			{
				if (MyConfig.configMusicAudios0.Value)
				{
					otelulGalatiBundle = AssetBundle.LoadFromFile(location + "musicAudios0");
				}
				if (MyConfig.configMusicAudios1.Value)
				{
					rapBattleBundle = AssetBundle.LoadFromFile(location + "musicAudios1");
				}
				if (MyConfig.configMusicAudios2.Value)
				{
					mansNotHotBundle = AssetBundle.LoadFromFile(location + "musicAudios2");
				}
				if (MyConfig.configMusicAudios3.Value)
				{
					triPoloskiBundle = AssetBundle.LoadFromFile(location + "musicAudios3");
				}
				if (MyConfig.configMusicAudios4.Value)
				{
					allStarBundle = AssetBundle.LoadFromFile(location + "musicAudios4");
				}
				if (MyConfig.configMusicAudios5.Value)
				{
					broMomentoBundle = AssetBundle.LoadFromFile(location + "musicAudios5");
				}
			}
			if ((MyConfig.configMusicAudios0.Value && !Object.op_Implicit((Object)(object)otelulGalatiBundle)) || (MyConfig.configMusicAudios1.Value && !Object.op_Implicit((Object)(object)rapBattleBundle)) || (MyConfig.configMusicAudios2.Value && !Object.op_Implicit((Object)(object)mansNotHotBundle)) || (MyConfig.configMusicAudios3.Value && !Object.op_Implicit((Object)(object)triPoloskiBundle)) || (MyConfig.configMusicAudios4.Value && !Object.op_Implicit((Object)(object)allStarBundle)) || (MyConfig.configMusicAudios5.Value && !Object.op_Implicit((Object)(object)broMomentoBundle)))
			{
				((BaseUnityPlugin)this).Logger.LogError((object)"## Failed to load BoomboxItem assets!");
				if (MyConfig.configMusicAudios0.Value && !Object.op_Implicit((Object)(object)otelulGalatiBundle))
				{
					((BaseUnityPlugin)this).Logger.LogError((object)"Failed to load musicAudios0 asset bundle!");
				}
				if (MyConfig.configMusicAudios1.Value && !Object.op_Implicit((Object)(object)rapBattleBundle))
				{
					((BaseUnityPlugin)this).Logger.LogError((object)"Failed to load musicAudios1 asset bundle!");
				}
				if (MyConfig.configMusicAudios2.Value && !Object.op_Implicit((Object)(object)mansNotHotBundle))
				{
					((BaseUnityPlugin)this).Logger.LogError((object)"Failed to load musicAudios2 asset bundle!");
				}
				if (MyConfig.configMusicAudios3.Value && !Object.op_Implicit((Object)(object)triPoloskiBundle))
				{
					((BaseUnityPlugin)this).Logger.LogError((object)"Failed to load musicAudios3 asset bundle!");
				}
				if (MyConfig.configMusicAudios4.Value && !Object.op_Implicit((Object)(object)allStarBundle))
				{
					((BaseUnityPlugin)this).Logger.LogError((object)"Failed to load musicAudios4 asset bundle!");
				}
				if (MyConfig.configMusicAudios5.Value && !Object.op_Implicit((Object)(object)broMomentoBundle))
				{
					((BaseUnityPlugin)this).Logger.LogError((object)"Failed to load musicAudios5 asset bundle!");
				}
			}
			else
			{
				int num = 0;
				if (MyConfig.configMusicAudios0.Value)
				{
					otelulGalatiSoundFX = (AudioClip[])(object)new AudioClip[1];
					otelulGalatiSoundFX = otelulGalatiBundle.LoadAllAssets<AudioClip>();
					num++;
				}
				if (MyConfig.configMusicAudios1.Value)
				{
					rapBattleSoundFX = (AudioClip[])(object)new AudioClip[1];
					rapBattleSoundFX = rapBattleBundle.LoadAllAssets<AudioClip>();
					num++;
				}
				if (MyConfig.configMusicAudios2.Value)
				{
					mansNotHotSoundFX = (AudioClip[])(object)new AudioClip[1];
					mansNotHotSoundFX = mansNotHotBundle.LoadAllAssets<AudioClip>();
					num++;
				}
				if (MyConfig.configMusicAudios3.Value)
				{
					triPoloskiSoundFX = (AudioClip[])(object)new AudioClip[1];
					triPoloskiSoundFX = triPoloskiBundle.LoadAllAssets<AudioClip>();
					num++;
				}
				if (MyConfig.configMusicAudios4.Value)
				{
					allStarSoundFX = (AudioClip[])(object)new AudioClip[1];
					allStarSoundFX = allStarBundle.LoadAllAssets<AudioClip>();
					num++;
				}
				if (MyConfig.configMusicAudios5.Value)
				{
					broMomentoSoundFX = (AudioClip[])(object)new AudioClip[1];
					broMomentoSoundFX = broMomentoBundle.LoadAllAssets<AudioClip>();
					num++;
				}
				new_musicAudios = (AudioClip[])(object)new AudioClip[num];
				int num2 = 0;
				if (MyConfig.configMusicAudios0.Value)
				{
					new_musicAudios[num2] = otelulGalatiSoundFX[0];
					num2++;
				}
				if (MyConfig.configMusicAudios1.Value)
				{
					new_musicAudios[num2] = rapBattleSoundFX[0];
					num2++;
				}
				if (MyConfig.configMusicAudios2.Value)
				{
					new_musicAudios[num2] = mansNotHotSoundFX[0];
					num2++;
				}
				if (MyConfig.configMusicAudios3.Value)
				{
					new_musicAudios[num2] = triPoloskiSoundFX[0];
					num2++;
				}
				if (MyConfig.configMusicAudios4.Value)
				{
					new_musicAudios[num2] = allStarSoundFX[0];
					num2++;
				}
				if (MyConfig.configMusicAudios5.Value)
				{
					new_musicAudios[num2] = broMomentoSoundFX[0];
					num2++;
				}
				((BaseUnityPlugin)this).Logger.LogInfo((object)"BoomboxItem sounds were loaded succesfully!");
			}
			if (Directory.Exists(location + "PufferAI"))
			{
				if (MyConfig.configFrighten.Value)
				{
					beatboxBundle = AssetBundle.LoadFromFile(location + "PufferAI\\frightenSFX");
				}
				if (MyConfig.configPuff.Value)
				{
					beatboxTusindBundle = AssetBundle.LoadFromFile(location + "PufferAI\\puff");
				}
			}
			else
			{
				if (MyConfig.configFrighten.Value)
				{
					beatboxBundle = AssetBundle.LoadFromFile(location + "frightenSFX");
				}
				if (MyConfig.configPuff.Value)
				{
					beatboxTusindBundle = AssetBundle.LoadFromFile(location + "puff");
				}
			}
			if ((MyConfig.configFrighten.Value && !Object.op_Implicit((Object)(object)beatboxBundle)) || (MyConfig.configPuff.Value && !Object.op_Implicit((Object)(object)beatboxTusindBundle)))
			{
				((BaseUnityPlugin)this).Logger.LogError((object)"## Failed to load PufferAI assets!");
				if (MyConfig.configFrighten.Value && !Object.op_Implicit((Object)(object)beatboxBundle))
				{
					((BaseUnityPlugin)this).Logger.LogError((object)"Failed to load frightenSFX asset bundle!");
				}
				if (MyConfig.configPuff.Value && !Object.op_Implicit((Object)(object)beatboxTusindBundle))
				{
					((BaseUnityPlugin)this).Logger.LogError((object)"Failed to load nervousMumbling asset bundle!");
				}
			}
			else
			{
				if (MyConfig.configFrighten.Value)
				{
					beatboxSoundFX = (AudioClip[])(object)new AudioClip[4];
					beatboxSoundFX = beatboxBundle.LoadAllAssets<AudioClip>();
					new_frightenSFX = (AudioClip[])(object)new AudioClip[beatboxSoundFX.Length];
					for (int i = 0; i < beatboxSoundFX.Length; i++)
					{
						new_frightenSFX[i] = beatboxSoundFX[i];
					}
				}
				if (MyConfig.configPuff.Value)
				{
					beatboxTusindSoundFX = (AudioClip[])(object)new AudioClip[1];
					beatboxTusindSoundFX = beatboxTusindBundle.LoadAllAssets<AudioClip>();
					new_puff = beatboxTusindSoundFX[0];
				}
				((BaseUnityPlugin)this).Logger.LogInfo((object)"PufferAI sounds were loaded succesfully!");
			}
			if (Directory.Exists(location + "SpringManAI"))
			{
				if (MyConfig.configSpringNoises.Value)
				{
					bingChillingBundle = AssetBundle.LoadFromFile(location + "SpringManAI\\springNoises");
				}
			}
			else if (MyConfig.configSpringNoises.Value)
			{
				bingChillingBundle = AssetBundle.LoadFromFile(location + "springNoises");
			}
			if (MyConfig.configSpringNoises.Value && !Object.op_Implicit((Object)(object)bingChillingBundle))
			{
				((BaseUnityPlugin)this).Logger.LogError((object)"## Failed to load SpringManAI assets!");
				if (MyConfig.configSpringNoises.Value && !Object.op_Implicit((Object)(object)bingChillingBundle))
				{
					((BaseUnityPlugin)this).Logger.LogError((object)"Failed to load springNoises asset bundle!");
				}
			}
			else if (MyConfig.configSpringNoises.Value)
			{
				bingChillingSoundFX = (AudioClip[])(object)new AudioClip[1];
				bingChillingSoundFX = bingChillingBundle.LoadAllAssets<AudioClip>();
				new_springNoises = (AudioClip[])(object)new AudioClip[bingChillingSoundFX.Length];
				new_springNoises[0] = bingChillingSoundFX[0];
				((BaseUnityPlugin)this).Logger.LogInfo((object)"SpringManAI sounds were loaded succesfully!");
			}
			((BaseUnityPlugin)this).Logger.LogInfo((object)"Plugin XueBug (version 0.2.0) has been succesfully loaded!");
		}
	}
}
namespace XueBug.Patches
{
	[HarmonyPatch(typeof(BoomboxItem))]
	internal class BoomboxItemPatch
	{
		[HarmonyPatch("Start")]
		[HarmonyPostfix]
		public static void BoomboxAudioPatch(ref AudioClip[] ___musicAudios)
		{
			___musicAudios = (AudioClip[])(object)new AudioClip[XueBugBase.new_musicAudios.Length];
			for (int i = 0; i < XueBugBase.new_musicAudios.Length; i++)
			{
				___musicAudios[i] = XueBugBase.new_musicAudios[i];
			}
		}
	}
	[HarmonyPatch(typeof(HoarderBugAI))]
	internal class HoarderBugAIPatch
	{
		[HarmonyPatch("Start")]
		[HarmonyPostfix]
		public static void hoarderBugAudioPatch(ref AudioClip[] ___chitterSFX, ref AudioClip[] ___angryScreechSFX)
		{
			___chitterSFX = XueBugBase.new_chitterSFX;
			___angryScreechSFX = XueBugBase.new_angryScreechSFX;
		}
	}
	[HarmonyPatch(typeof(PufferAI))]
	internal class PufferAIPatch
	{
		[HarmonyPatch("Start")]
		[HarmonyPostfix]
		public static void pufferAudioPatch(ref AudioClip[] ___frightenSFX, ref AudioClip ___puff)
		{
			___frightenSFX = XueBugBase.new_frightenSFX;
			___puff = XueBugBase.new_puff;
		}
	}
	[HarmonyPatch(typeof(SpringManAI))]
	internal class SpringManAIPatch
	{
		[HarmonyPatch("__initializeVariables")]
		[HarmonyPostfix]
		public static void SpringManAudioPatch(ref AudioClip[] ___springNoises)
		{
			___springNoises = XueBugBase.new_springNoises;
		}
	}
}
namespace XueBug.Configuration
{
	public class Config
	{
		public ConfigEntry<bool> configDisplayASCII;

		public ConfigEntry<bool> configChitter;

		public ConfigEntry<bool> configAngryScreech;

		public ConfigEntry<bool> configMusicAudios0;

		public ConfigEntry<bool> configMusicAudios1;

		public ConfigEntry<bool> configMusicAudios2;

		public ConfigEntry<bool> configMusicAudios3;

		public ConfigEntry<bool> configMusicAudios4;

		public ConfigEntry<bool> configMusicAudios5;

		public ConfigEntry<bool> configFrighten;

		public ConfigEntry<bool> configPuff;

		public ConfigEntry<bool> configSpringNoises;

		public Config(ConfigFile cfg)
		{
			configDisplayASCII = cfg.Bind<bool>("General", "DisplayASCII", true, "To show the ASCII art in BepInEx terminal");
			configChitter = cfg.Bind<bool>("Audio.HoarderBug", "chitter", true, "To change chitterSFX in the HoarderBugAI sounds");
			configAngryScreech = cfg.Bind<bool>("Audio.HoarderBug", "angryScreech", true, "To change angryScreechSFX in the HoarderBugAI sounds");
			configMusicAudios0 = cfg.Bind<bool>("Audio.Boombox", "Boombox0", true, "To change musicAudios0 in the BoomBox sounds");
			configMusicAudios1 = cfg.Bind<bool>("Audio.Boombox", "Boombox1", true, "To change musicAudios1 in the BoomBox sounds");
			configMusicAudios2 = cfg.Bind<bool>("Audio.Boombox", "Boombox2", true, "To change musicAudios2 in the BoomBox sounds");
			configMusicAudios3 = cfg.Bind<bool>("Audio.Boombox", "Boombox3", true, "To change musicAudios3 in the BoomBox sounds");
			configMusicAudios4 = cfg.Bind<bool>("Audio.Boombox", "Boombox4", true, "To change musicAudios4 in the BoomBox sounds");
			configMusicAudios5 = cfg.Bind<bool>("Audio.Boombox", "Boombox5", true, "To change musicAudios5 in the BoomBox sounds");
			configFrighten = cfg.Bind<bool>("Audio.Puffer", "frighten", true, "To change frightenSFX in the PufferAI sounds");
			configPuff = cfg.Bind<bool>("Audio.Puffer", "angryScreech", true, "To change puff in the PufferAI sounds");
			configSpringNoises = cfg.Bind<bool>("Audio.SpringMan", "springNoises", true, "To change springNoises in the SpringManAI sounds");
		}
	}
}