Decompiled source of FM Companion v0.1.0

FM_Companion.dll

Decompiled 11 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 FM_Companion.Patches;
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: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = "")]
[assembly: AssemblyCompany("FM_Companion")]
[assembly: AssemblyConfiguration("Debug")]
[assembly: AssemblyDescription("A companion mod to FacilityMeltdown by loaforc.")]
[assembly: AssemblyFileVersion("0.1.0.0")]
[assembly: AssemblyInformationalVersion("0.1.0")]
[assembly: AssemblyProduct("FM_Companion")]
[assembly: AssemblyTitle("FM_Companion")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("0.1.0.0")]
[module: UnverifiableCode]
namespace FM_Companion
{
	[BepInPlugin("FM_Companion", "FM_Companion", "0.1.0")]
	public class Plugin : BaseUnityPlugin
	{
		private readonly Harmony harmony = new Harmony("FM_Companion");

		private static Plugin Instance;

		private void Awake()
		{
			if ((Object)(object)Instance == (Object)null)
			{
				Instance = this;
			}
			harmony.PatchAll(typeof(Plugin));
			harmony.PatchAll(typeof(LungPropPatch));
			((BaseUnityPlugin)this).Logger.LogInfo((object)"Plugin FM_Companion is loaded!");
		}
	}
	public static class PluginInfo
	{
		public const string PLUGIN_GUID = "FM_Companion";

		public const string PLUGIN_NAME = "FM_Companion";

		public const string PLUGIN_VERSION = "0.1.0";
	}
}
namespace FM_Companion.Patches
{
	[HarmonyPatch(typeof(LungProp))]
	internal class LungPropPatch
	{
		[HarmonyPatch("Start")]
		[HarmonyPrefix]
		private static void StartPatch(ref int ___scrapValue)
		{
			___scrapValue = 120;
		}
	}
}