using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using BepInEx;
using BepInEx.Logging;
using DevysOQLMod.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: AssemblyTitle("DevysOQLMod")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("DevysOQLMod")]
[assembly: AssemblyCopyright("Copyright © 2023")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("5a1bb5c9-fe79-4f4a-9abe-ae396f0f481f")]
[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 DevysOQLMod
{
[BepInPlugin("Devy.QuailtyOfLifeMod", "Devy's OQL Mod", "1.0.0")]
public class DevysOQLModBase : BaseUnityPlugin
{
private const string modGUID = "Devy.QuailtyOfLifeMod";
private const string modName = "Devy's OQL Mod";
private const string modVersion = "1.0.0";
private readonly Harmony harmony = new Harmony("Devy.QuailtyOfLifeMod");
private static DevysOQLModBase Instance;
internal ManualLogSource mls;
private void Awake()
{
if ((Object)(object)Instance == (Object)null)
{
Instance = this;
}
mls = Logger.CreateLogSource("Devy.QuailtyOfLifeMod");
mls.LogInfo((object)"Devy's Mod awakon");
harmony.PatchAll(typeof(DevysOQLModBase));
harmony.PatchAll(typeof(InverseTeleporterPatch));
harmony.PatchAll();
}
}
}
namespace DevysOQLMod.Patches
{
[HarmonyPatch(typeof(ShipTeleporter))]
internal class InverseTeleporterPatch
{
[HarmonyPatch("Awake")]
[HarmonyPrefix]
private static void noCooldown(ref float ___cooldownAmount)
{
___cooldownAmount = 10f;
}
}
}