Decompiled source of FuckYouLocksYourDoors v1.0.2

plugins/FuckYouLocksYourDoors.dll

Decompiled 3 months ago
using System;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using System.Security;
using System.Security.Permissions;
using BepInEx;
using BepInEx.Logging;
using HarmonyLib;
using Microsoft.CodeAnalysis;

[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 = ".NET Standard 2.1")]
[assembly: AssemblyCompany("FuckYouLocksYourDoors")]
[assembly: AssemblyConfiguration("Debug")]
[assembly: AssemblyFileVersion("1.0.2.0")]
[assembly: AssemblyInformationalVersion("1.0.2")]
[assembly: AssemblyProduct("Fuck You, *locks your doors*")]
[assembly: AssemblyTitle("FuckYouLocksYourDoors")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("1.0.2.0")]
[module: UnverifiableCode]
[module: RefSafetyRules(11)]
namespace Microsoft.CodeAnalysis
{
	[CompilerGenerated]
	[Microsoft.CodeAnalysis.Embedded]
	internal sealed class EmbeddedAttribute : Attribute
	{
	}
}
namespace System.Runtime.CompilerServices
{
	[CompilerGenerated]
	[Microsoft.CodeAnalysis.Embedded]
	[AttributeUsage(AttributeTargets.Module, AllowMultiple = false, Inherited = false)]
	internal sealed class RefSafetyRulesAttribute : Attribute
	{
		public readonly int Version;

		public RefSafetyRulesAttribute(int P_0)
		{
			Version = P_0;
		}
	}
}
namespace FuckYouLocksYourDoors
{
	[BepInPlugin("nikemitosis.lethal_company.fylyd", "Fuck you, *locks your doors*", "1.0.2")]
	public class Plugin : BaseUnityPlugin
	{
		public const string GUID = "nikemitosis.lethal_company.fylyd";

		public const string NAME = "Fuck you, *locks your doors*";

		public const string VERSION = "1.0.2";

		internal static ManualLogSource Logger;

		private readonly Harmony harmony = new Harmony("nikemitosis.lethal_company.fylyd");

		private void Awake()
		{
			Logger = ((BaseUnityPlugin)this).Logger;
			harmony.PatchAll();
			Logger.LogInfo((object)"Retrieved the keys to lock your doors");
		}
	}
	[HarmonyPatch(typeof(DoorLock))]
	internal class DoorPatch
	{
		[HarmonyPatch("Awake")]
		[HarmonyPostfix]
		private static void AutoLock(DoorLock __instance)
		{
			__instance.LockDoor(30f);
		}
	}
	public static class MyPluginInfo
	{
		public const string PLUGIN_GUID = "FuckYouLocksYourDoors";

		public const string PLUGIN_NAME = "Fuck You, *locks your doors*";

		public const string PLUGIN_VERSION = "1.0.2";
	}
}