Decompiled source of CoilheadDontOpenDoors v1.0.0

BepInEx/plugins/CoilheadDontOpenDoors.dll

Decompiled 4 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 UnityEngine;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: AssemblyTitle("CoilheadDontOpenDoors")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("CoilheadDontOpenDoors")]
[assembly: AssemblyCopyright("Copyright ©  2024")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("240ecdcb-73b8-4c94-804a-4bfd1b2211e7")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace CoilheadDontOpenDoors;

[BepInPlugin("Krild", "CoilheadDontOpenDoors", "1.0.0.0")]
public class Krild : BaseUnityPlugin
{
	private const string modGUID = "Krild";

	private const string modName = "CoilheadDontOpenDoors";

	private const string modVersion = "1.0.0.0";

	private readonly Harmony harmony = new Harmony("Krild");

	private static Krild current;

	internal ManualLogSource log;

	private void Awake()
	{
		if ((Object)(object)current == (Object)null)
		{
			current = this;
		}
		log = Logger.CreateLogSource("Krild");
		log.LogInfo((object)"Krildig geladen :3");
		harmony.PatchAll(typeof(Krild));
		harmony.PatchAll(typeof(SetDoorToZero));
	}
}
[HarmonyPatch(typeof(SpringManAI))]
internal class SetDoorToZero
{
	[HarmonyPatch("Update")]
	[HarmonyPostfix]
	private static void SpringManFixDoorOpen(ref float ___openDoorSpeedMultiplier)
	{
		___openDoorSpeedMultiplier = 0f;
	}
}