Decompiled source of BetterTps v1.0.0

BepInEx/plugins/bettertp/bettertp.dll

Decompiled 10 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;
using bettertp.patches;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: AssemblyTitle("bettertp")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("bettertp")]
[assembly: AssemblyCopyright("Copyright ©  2024")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("51b8abf9-9da7-495b-965e-8b0f8d4b4aae")]
[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 bettertp
{
	[BepInPlugin("Poseidon.bettertp", "Bettertp", "1.0.0")]
	public class bettertp : BaseUnityPlugin
	{
		private const string modGUID = "Poseidon.bettertp";

		private const string modName = "Bettertp";

		private const string modVersion = "1.0.0";

		private readonly Harmony harmony = new Harmony("Poseidon.bettertp");

		private static bettertp Instance;

		internal ManualLogSource mls;

		private void Awake()
		{
			if ((Object)(object)Instance == (Object)null)
			{
				Instance = this;
			}
			mls = Logger.CreateLogSource("Poseidon.bettertp");
			mls.LogInfo((object)"OHAYOO :3");
			harmony.PatchAll(typeof(bettertp));
			harmony.PatchAll(typeof(tppatch));
		}
	}
}
namespace bettertp.patches
{
	[HarmonyPatch(typeof(ShipTeleporter))]
	internal class tppatch
	{
		[HarmonyPatch("Update")]
		[HarmonyPostfix]
		private static void TpPatch(ref float ___cooldownTime)
		{
			___cooldownTime = 0f;
		}
	}
}

bettertp.dll

Decompiled 10 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;
using bettertp.patches;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: AssemblyTitle("bettertp")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("bettertp")]
[assembly: AssemblyCopyright("Copyright ©  2024")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("51b8abf9-9da7-495b-965e-8b0f8d4b4aae")]
[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 bettertp
{
	[BepInPlugin("Poseidon.bettertp", "Bettertp", "1.0.0")]
	public class bettertp : BaseUnityPlugin
	{
		private const string modGUID = "Poseidon.bettertp";

		private const string modName = "Bettertp";

		private const string modVersion = "1.0.0";

		private readonly Harmony harmony = new Harmony("Poseidon.bettertp");

		private static bettertp Instance;

		internal ManualLogSource mls;

		private void Awake()
		{
			if ((Object)(object)Instance == (Object)null)
			{
				Instance = this;
			}
			mls = Logger.CreateLogSource("Poseidon.bettertp");
			mls.LogInfo((object)"OHAYOO :3");
			harmony.PatchAll(typeof(bettertp));
			harmony.PatchAll(typeof(tppatch));
		}
	}
}
namespace bettertp.patches
{
	[HarmonyPatch(typeof(ShipTeleporter))]
	internal class tppatch
	{
		[HarmonyPatch("Update")]
		[HarmonyPostfix]
		private static void TpPatch(ref float ___cooldownTime)
		{
			___cooldownTime = 0f;
		}
	}
}