Decompiled source of KeepItemTp v1.0.0

ItemKeepTP.dll

Decompiled 6 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 GameNetcodeStuff;
using HarmonyLib;
using ItemKeepTP.Patches;
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("ItemKeepTP")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("ItemKeepTP")]
[assembly: AssemblyCopyright("Copyright ©  2023")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("ee9fe4cb-e24b-4a8c-a9c5-7e314c5800f5")]
[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 ItemKeepTP
{
	[BepInPlugin("Condog.KeepItem", "LC KeepItemTP", "1.0.0.0")]
	public class KeepItem : BaseUnityPlugin
	{
		private const string modGUID = "Condog.KeepItem";

		private const string modName = "LC KeepItemTP";

		private const string modVersion = "1.0.0.0";

		private readonly Harmony harmony = new Harmony("Condog.KeepItem");

		private static KeepItem Instance;

		internal ManualLogSource mls;

		private void Awake()
		{
			if ((Object)(object)Instance == (Object)null)
			{
				Instance = this;
			}
			mls = Logger.CreateLogSource("Condog.KeepItem");
			mls.LogInfo((object)"The test mod has started");
			harmony.PatchAll(typeof(KeepItem));
			harmony.PatchAll(typeof(KeepItemPatch));
		}
	}
}
namespace ItemKeepTP.Patches
{
	[HarmonyPatch(typeof(PlayerControllerB), "DropAllHeldItems")]
	internal class KeepItemPatch
	{
		[HarmonyPrefix]
		private static bool Prefix()
		{
			return false;
		}
	}
}