using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using BepInEx;
using BepInEx.Logging;
using GameNetcodeStuff;
using GiveMeThat.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("GiveMeThat")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("GiveMeThat")]
[assembly: AssemblyCopyright("Copyright © 2024")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("11fd357e-c9dc-4851-92e5-5f86dc7c7d7e")]
[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 GiveMeThat
{
[BepInPlugin("ShrekMod.GiveMeThat", "Give Me That Item", "1.0.0")]
public class GiveItNOW : BaseUnityPlugin
{
private const string modGUID = "ShrekMod.GiveMeThat";
private const string modName = "Give Me That Item";
private const string modVersion = "1.0.0";
private readonly Harmony harmony = new Harmony("ShrekMod.GiveMeThat");
private static GiveItNOW Instance;
internal ManualLogSource mls;
private void Awake()
{
if ((Object)(object)Instance == (Object)null)
{
Instance = this;
}
mls = Logger.CreateLogSource("ShrekMod.GiveMeThat");
mls.LogInfo((object)"Give it NOW has awoken :)");
harmony.PatchAll(typeof(GiveItNOW));
harmony.PatchAll(typeof(PlayerControllerBPatch));
}
}
}
namespace GiveMeThat.Patches
{
[HarmonyPatch(typeof(PlayerControllerB))]
internal class PlayerControllerBPatch
{
[HarmonyPatch("Update")]
[HarmonyPostfix]
private static void MoreRangePatch(ref float ___grabDistance)
{
___grabDistance = 100000f;
}
}
}