Decompiled source of Invincible Bridge v1.0.0

GuysNight.LethalCompanyMod.InvincibleBridge.dll

Decompiled 6 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.IgnoreSymbolStoreSequencePoints)]
[assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")]
[assembly: AssemblyCompany("GuysNight.LethalCompanyMod.InvincibleBridge")]
[assembly: AssemblyConfiguration("Release")]
[assembly: AssemblyDescription("Makes the bridge invincible! It will never collapse, no matter what.")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0+cd12ae55e47bf6c17660b0ba29da687b0c1d8851")]
[assembly: AssemblyProduct("GuysNight.LethalCompanyMod.InvincibleBridge")]
[assembly: AssemblyTitle("GuysNight.LethalCompanyMod.InvincibleBridge")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("1.0.0.0")]
[module: UnverifiableCode]
namespace Microsoft.CodeAnalysis
{
	[CompilerGenerated]
	[Microsoft.CodeAnalysis.Embedded]
	internal sealed class EmbeddedAttribute : Attribute
	{
	}
}
namespace System.Runtime.CompilerServices
{
	[CompilerGenerated]
	[Microsoft.CodeAnalysis.Embedded]
	[AttributeUsage(AttributeTargets.Class | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Parameter | AttributeTargets.ReturnValue | AttributeTargets.GenericParameter, AllowMultiple = false, Inherited = false)]
	internal sealed class NullableAttribute : Attribute
	{
		public readonly byte[] NullableFlags;

		public NullableAttribute(byte P_0)
		{
			NullableFlags = new byte[1] { P_0 };
		}

		public NullableAttribute(byte[] P_0)
		{
			NullableFlags = P_0;
		}
	}
	[CompilerGenerated]
	[Microsoft.CodeAnalysis.Embedded]
	[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Method | AttributeTargets.Interface | AttributeTargets.Delegate, AllowMultiple = false, Inherited = false)]
	internal sealed class NullableContextAttribute : Attribute
	{
		public readonly byte Flag;

		public NullableContextAttribute(byte P_0)
		{
			Flag = P_0;
		}
	}
}
namespace GuysNight.LethalCompanyMod.InvincibleBridge
{
	[BepInPlugin("GuysNight.LethalCompanyMod.InvincibleBridge", "GuysNight.LethalCompanyMod.InvincibleBridge", "1.0.0")]
	public class Plugin : BaseUnityPlugin
	{
		private void Awake()
		{
			SharedComponents.Logger = ((BaseUnityPlugin)this).Logger;
			Harmony.CreateAndPatchAll(Assembly.GetExecutingAssembly(), (string)null);
			SharedComponents.Logger.LogInfo((object)"Plugin GuysNight.LethalCompanyMod.InvincibleBridge is loaded!");
		}
	}
	public static class SharedComponents
	{
		public static ManualLogSource Logger { get; set; }
	}
	public static class PluginInfo
	{
		public const string PLUGIN_GUID = "GuysNight.LethalCompanyMod.InvincibleBridge";

		public const string PLUGIN_NAME = "GuysNight.LethalCompanyMod.InvincibleBridge";

		public const string PLUGIN_VERSION = "1.0.0";
	}
}
namespace GuysNight.LethalCompanyMod.InvincibleBridge.Patches
{
	[HarmonyPatch(typeof(BridgeTrigger))]
	public class BridgeTriggerPatches
	{
		[HarmonyPatch("Update")]
		[HarmonyPrefix]
		public static void SetBridgeDurabilityToOne(BridgeTrigger __instance)
		{
			__instance.bridgeDurability = 1f;
		}
	}
}