Decompiled source of Rad Mech Quiet v1.0.2

huluoboRadMech.dll

Decompiled 7 months ago
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using BepInEx;
using HarmonyLib;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
[assembly: AssemblyVersion("0.0.0.0")]
namespace huluoboRadMech;

[BepInPlugin("hlb.RadMech", "huluoboRadMech", "1.0.0")]
public class huluoboClass : BaseUnityPlugin
{
	[HarmonyPatch(typeof(RadMechAI))]
	internal class RadMechEnemyov
	{
		[HarmonyPatch("Start")]
		[HarmonyPostfix]
		private static void ReformVisuals(ref RadMechAI __instance)
		{
			__instance.LocalLRADAudio.mute = true;
			__instance.LocalLRADAudio2.mute = true;
		}
	}

	private const string GUID = "hlb.RadMech";

	private const string Name = "huluoboRadMech";

	private const string Version = "1.0.0";

	private Harmony harmony;

	private void Awake()
	{
		//IL_0007: Unknown result type (might be due to invalid IL or missing references)
		//IL_0011: Expected O, but got Unknown
		harmony = new Harmony("hlb.RadMech");
		harmony.PatchAll();
	}
}