Decompiled source of AmabasignMod v1.0.1

AmabasignMod.dll

Decompiled 2 months ago
using 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 GameNetcodeStuff;
using HarmonyLib;
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("AmabasignMod")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("AmabasignMod")]
[assembly: AssemblyCopyright("Copyright ©  2025")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("06c91154-fc5e-4dc6-8791-85793475ff0a")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace AmabasignMod
{
	[BepInPlugin("FireJason75.AmabasignMod", "AmabasignMod", "1.0.0.0")]
	public class AmabasignModPatch : BaseUnityPlugin
	{
		private const string modGUID = "FireJason75.AmabasignMod";

		private const string modName = "AmabasignMod";

		private const string modVersion = "1.0.0.0";

		private readonly Harmony harmony = new Harmony("FireJason75.AmabasignMod");

		internal static AmabasignModPatch Instance;

		internal static ManualLogSource mls;

		internal static List<AudioClip> SoundFX;

		internal static AssetBundle Bundle;

		private void Awake()
		{
			if ((Object)(object)Instance == (Object)null)
			{
				Instance = this;
			}
			mls = Logger.CreateLogSource("modGUID");
			mls.LogInfo((object)"AmabasignMod is coooomin");
			harmony.PatchAll(typeof(AmabasignModPatch));
			mls = ((BaseUnityPlugin)this).Logger;
			SoundFX = new List<AudioClip>();
			string location = ((BaseUnityPlugin)Instance).Info.Location;
			location = location.TrimEnd("AmbusingMod.dll".ToCharArray());
			Bundle = AssetBundle.LoadFromFile(location + "Amabasign");
			if ((Object)(object)Bundle != (Object)null)
			{
				mls.LogInfo((object)"Succsessfully loaded Asset Bundle");
				SoundFX = Bundle.LoadAllAssets<AudioClip>().ToList();
			}
			else
			{
				mls.LogError((object)"Faild To load Asset Bundle");
			}
		}
	}
}
namespace AmabasignMod.Patches
{
	[HarmonyPatch(typeof(FlowermanAI))]
	internal class AmabasignModPatch
	{
		[HarmonyPatch("Start")]
		[HarmonyPostfix]
		private static void OverrideAudio(FlowermanAI __Instance)
		{
			__Instance.crackNeckSFX = AmabasignMod.AmabasignModPatch.SoundFX[0];
		}
	}
	[HarmonyPatch(typeof(PlayerControllerB))]
	internal class PlayerControllerBPatch
	{
	}
}