Please disclose if your mod was created primarily using AI tools by adding the 'AI Generated' category. Failing to do so may result in the mod being removed from Thunderstore.
Decompiled source of NoInverseTeleporterCD v1.0.0
InverseTeleporterNoCD.dll
Decompiled 2 years agousing 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 InverseTeleporterNoCD.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("InverseTeleporterNoCD")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("InverseTeleporterNoCD")] [assembly: AssemblyCopyright("Copyright © 2023")] [assembly: AssemblyTrademark("")] [assembly: ComVisible(false)] [assembly: Guid("dadef8f3-04da-4726-9e8a-b5e8624b6b88")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")] [assembly: AssemblyVersion("1.0.0.0")] namespace InverseTeleporterNoCD { [BepInPlugin("ChocalexGangShit", "NoTeleporterCD", "1.0.0.0")] public class TeleportPlugin : BaseUnityPlugin { private const string modGUID = "ChocalexGangShit"; private const string modName = "NoTeleporterCD"; private const string modVersion = "1.0.0.0"; internal static Harmony harmony = new Harmony("ChocalexGangShit"); private static TeleportPlugin Instance; internal ManualLogSource mls; private void Awake() { if ((Object)(object)Instance == (Object)null) { Instance = this; } mls = Logger.CreateLogSource("ChocalexGangShit"); mls.LogInfo((object)"InverseTeleporter has awakened"); harmony.PatchAll(typeof(TeleportPlugin)); harmony.PatchAll(typeof(cooldownPatch)); } } } namespace InverseTeleporterNoCD.Patches { [HarmonyPatch(typeof(ShipTeleporter))] internal class cooldownPatch { [HarmonyPatch("Update")] [HarmonyPostfix] private static void Awake(bool ___isInverseTeleporter, ref float ___cooldownAmount, ref float ___cooldownTime) { if (___isInverseTeleporter) { ___cooldownAmount = 0f; ___cooldownTime = 0f; } } } }