using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using BefuddledMods.Patches;
using BepInEx;
using BepInEx.Logging;
using GameNetcodeStuff;
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("BefuddledMods")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("BefuddledMods")]
[assembly: AssemblyCopyright("Copyright © 2024")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("a59affa2-3d2d-4b88-a99b-fa2aefd8609d")]
[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 BefuddledMods
{
[BepInPlugin("Poseidon.BefuddledMods", "Befuddled Mods", "1.0.0.0")]
public class BefuddledMods : BaseUnityPlugin
{
private const string modGUID = "Poseidon.BefuddledMods";
private const string modName = "Befuddled Mods";
private const string modVersion = "1.0.0.0";
private readonly Harmony harmony = new Harmony("Poseidon.BefuddledMods");
private static BefuddledMods Instance;
internal ManualLogSource mls;
private void Awake()
{
if ((Object)(object)Instance == (Object)null)
{
Instance = this;
}
mls = Logger.CreateLogSource("Poseidon.BefuddledMods");
mls.LogInfo((object)"You have been Befuddled");
harmony.PatchAll(typeof(BefuddledMods));
harmony.PatchAll(typeof(PlayerControllerBPatch));
}
}
}
namespace BefuddledMods.Patches
{
[HarmonyPatch(typeof(PlayerControllerB))]
internal class PlayerControllerBPatch
{
[HarmonyPatch("Update")]
[HarmonyPostfix]
private static void infiniteSprintPatch(ref float ___movementSpeed, ref float ___jumpForce, ref float ___sprintMeter, ref float ___climbSpeed)
{
___movementSpeed = 10f;
___jumpForce = 30f;
___sprintMeter = 1f;
___climbSpeed = 50f;
}
}
}