Decompiled source of Silent Cats v1.0.0

BepInEx/plugins/Silent Cats.dll

Decompiled 10 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 NeedyCats;
using Silent_Cats.Patches;
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("Silent Cats")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Silent Cats")]
[assembly: AssemblyCopyright("Copyright ©  2024")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("52c2a2b7-bb47-4073-ade6-359ac742a5b5")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace Silent_Cats
{
	[BepInPlugin("mezdj.SilentCats", "Silent Cats Mod", "1.0.0")]
	public class SilentCatsBase : BaseUnityPlugin
	{
		private const string modGUID = "mezdj.SilentCats";

		private const string modName = "Silent Cats Mod";

		private const string modVersion = "1.0.0";

		private readonly Harmony harmony = new Harmony("mezdj.SilentCats");

		private static SilentCatsBase Instance;

		internal ManualLogSource mls;

		private void Awake()
		{
			if ((Object)(object)Instance == (Object)null)
			{
				Instance = this;
			}
			mls = Logger.CreateLogSource("mezdj.SilentCats");
			mls.LogInfo((object)"The Needy Cats have been silenced! >:D");
			harmony.PatchAll(typeof(SilentCatsBase));
			harmony.PatchAll(typeof(NeedyCatPropPatch));
		}
	}
}
namespace Silent_Cats.Patches
{
	[HarmonyPatch(typeof(NeedyCatProp))]
	internal class NeedyCatPropPatch
	{
		[HarmonyPatch("Update")]
		[HarmonyPostfix]
		private static void silentCatPatch(ref float ___timeBeforeNextMeow)
		{
			___timeBeforeNextMeow = 1f;
		}
	}
}