Decompiled source of NoJumpScare v1.0.0

plugins/NoJumpScare.dll

Decompiled 7 months ago
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using System.Security;
using System.Security.Permissions;
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(".NETStandard,Version=v2.1", FrameworkDisplayName = "")]
[assembly: AssemblyCompany("NoJumpScare")]
[assembly: AssemblyConfiguration("Debug")]
[assembly: AssemblyDescription("Disable sound and screen shake when seeing an enemy for the first time.")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0")]
[assembly: AssemblyProduct("NoJumpScare")]
[assembly: AssemblyTitle("NoJumpScare")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("1.0.0.0")]
[module: UnverifiableCode]
namespace NoJumpScare;

[BepInPlugin("NoJumpScare", "NoJumpScare", "1.0.0")]
public class Plugin : BaseUnityPlugin
{
	private void Awake()
	{
		//IL_0017: Unknown result type (might be due to invalid IL or missing references)
		//IL_001d: Expected O, but got Unknown
		((BaseUnityPlugin)this).Logger.LogInfo((object)"Plugin NoJumpScare is loaded!");
		Harmony val = new Harmony("NoJumpScare");
		val.PatchAll();
	}
}
[HarmonyPatch(typeof(JumpScareSound))]
public class NoJumpScare
{
	[HarmonyPatch("Scare")]
	[HarmonyPrefix]
	private static bool PreventScare()
	{
		return false;
	}
}
public static class PluginInfo
{
	public const string PLUGIN_GUID = "NoJumpScare";

	public const string PLUGIN_NAME = "NoJumpScare";

	public const string PLUGIN_VERSION = "1.0.0";
}