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 NoCooldownInverseTeleporter.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("NoCooldownInverseTeleporter")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("NoCooldownInverseTeleporter")]
[assembly: AssemblyCopyright("Copyright © 2024")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("21a80c9c-a739-467c-9f0a-3416685f75b7")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace NoCooldownInverseTeleporter
{
[BepInPlugin("WC.NoCooldownInverseTeleporterBase", "NoCooldownInverseTeleporterBase", "1.0.0")]
public class NoCooldownInverseTeleporterBase : BaseUnityPlugin
{
private const string modGUID = "WC.NoCooldownInverseTeleporterBase";
private const string modName = "NoCooldownInverseTeleporterBase";
private const string modVersion = "1.0.0";
private readonly Harmony harmony = new Harmony("WC.NoCooldownInverseTeleporterBase");
private static NoCooldownInverseTeleporterBase Instance;
internal ManualLogSource mls;
private void Awake()
{
if ((Object)(object)Instance == (Object)null)
{
Instance = this;
}
mls = Logger.CreateLogSource("WC.NoCooldownInverseTeleporterBase");
mls.LogInfo((object)"NoCooldownInverseTeleporter Loaded!");
harmony.PatchAll(typeof(NoCooldownInverseTeleporterBase));
harmony.PatchAll(typeof(InverseTeleporterPatch));
}
}
}
namespace NoCooldownInverseTeleporter.Patches
{
[HarmonyPatch(typeof(ShipTeleporter))]
internal class InverseTeleporterPatch
{
[HarmonyPatch("Update")]
[HarmonyPostfix]
private static void removeCooldown(ref float ___cooldownTime)
{
___cooldownTime = 0f;
}
}
}