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;
[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: AssemblyTitle("LongerRescueHook")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("LongerRescueHook")]
[assembly: AssemblyCopyright("Copyright © 2024")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("a9dedead-b202-4865-aa0a-b1161f5b2a8a")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace RescueHookMod;
[BepInPlugin("ExtraLongRescueHookMod", "Extra Long Rescue Hook", "1.1.0")]
public class RescueHookPlugin : BaseUnityPlugin
{
private const string modGUID = "ExtraLongRescueHookMod";
private const string modName = "Extra Long Rescue Hook";
private const string modVersion = "1.1.0";
private readonly Harmony harmony = new Harmony("ExtraLongRescueHookMod");
private static RescueHookPlugin Instance;
internal ManualLogSource mls;
private void Awake()
{
if ((Object)(object)Instance == (Object)null)
{
Instance = this;
}
mls = Logger.CreateLogSource("ExtraLongRescueHookMod");
mls.LogInfo((object)" : IM ALIVE! AM ALIVE : ");
harmony.PatchAll(typeof(RescueHookPlugin));
}
[HarmonyPatch(typeof(RescueHook), "FixedUpdate")]
[HarmonyPrefix]
private static void plugin2(RescueHook __instance)
{
__instance.dragForce = 250f;
}
[HarmonyPatch(typeof(RescueHook), "ConfigItem")]
[HarmonyPrefix]
private static void plugin3(RescueHook __instance)
{
__instance.range = int.MaxValue;
}
}