using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using BepInEx;
using HarmonyLib;
using ToyMuffler.Patches;
[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
[assembly: AssemblyTitle("ToyMuffler")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("ToyMuffler")]
[assembly: AssemblyCopyright("Copyright © 2023")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("5D2A16E9-72BD-497C-8E94-0402C946973E")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace ToyMuffler
{
[BepInPlugin("Nie_ToyMuffler", "ToyMuffler", "1.0.0")]
public class Plugin : BaseUnityPlugin
{
public const string MODNAME = "ToyMuffler";
public const string AUTHOR = "Nie";
public const string GUID = "Nie_ToyMuffler";
public const string VERSION = "1.0.0";
public static Harmony _harmony;
public void Awake()
{
//IL_0005: Unknown result type (might be due to invalid IL or missing references)
//IL_000f: Expected O, but got Unknown
_harmony = new Harmony("Nie_ToyMuffler");
_harmony.PatchAll(typeof(NoisemakerPatch));
}
}
}
namespace ToyMuffler.Patches
{
[HarmonyPatch]
internal class NoisemakerPatch
{
[HarmonyPatch(typeof(NoisemakerProp), "ItemActivate")]
public static void Prefix(ref NoisemakerProp __instance)
{
__instance.minLoudness = 0f;
__instance.maxLoudness = 0f;
}
}
}