using System;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using BepInEx;
using BepInEx.Logging;
using GameNetcodeStuff;
using HarmonyLib;
using Microsoft.CodeAnalysis;
[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(/*Could not decode attribute arguments.*/)]
[assembly: TargetFramework(".NETCoreApp,Version=v7.0", FrameworkDisplayName = ".NET 7.0")]
[assembly: AssemblyCompany("MovementMod")]
[assembly: AssemblyConfiguration("Debug")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0")]
[assembly: AssemblyProduct("MovementMod")]
[assembly: AssemblyTitle("MovementMod")]
[assembly: AssemblyVersion("1.0.0.0")]
[module: RefSafetyRules(11)]
namespace Microsoft.CodeAnalysis
{
[CompilerGenerated]
[Embedded]
internal sealed class EmbeddedAttribute : System.Attribute
{
}
}
namespace System.Runtime.CompilerServices
{
[CompilerGenerated]
[Embedded]
[AttributeUsage(/*Could not decode attribute arguments.*/)]
internal sealed class NullableAttribute : System.Attribute
{
public readonly byte[] NullableFlags;
public NullableAttribute(byte P_0)
{
NullableFlags = new byte[1] { P_0 };
}
public NullableAttribute(byte[] P_0)
{
NullableFlags = P_0;
}
}
[CompilerGenerated]
[Embedded]
[AttributeUsage(/*Could not decode attribute arguments.*/)]
internal sealed class NullableContextAttribute : System.Attribute
{
public readonly byte Flag;
public NullableContextAttribute(byte P_0)
{
Flag = P_0;
}
}
[CompilerGenerated]
[Embedded]
[AttributeUsage(/*Could not decode attribute arguments.*/)]
internal sealed class RefSafetyRulesAttribute : System.Attribute
{
public readonly int Version;
public RefSafetyRulesAttribute(int P_0)
{
Version = P_0;
}
}
}
namespace MovementMod
{
[BepInPlugin("falcon.jam.movementmod", "MovementMod", "1.0.0")]
public class LethalHello : BaseUnityPlugin
{
public const string modGUID = "falcon.jam.movementmod";
public const string modName = "MovementMod";
public const string modVersion = "1.0.0";
private readonly Harmony harmony = new Harmony("falcon.jam.movementmod");
public static float sprintTimeMultiplier = 7.5f;
public static float carryWeightMultiplier = 0.9f;
private void Awake()
{
ManualLogSource val = Logger.CreateLogSource("falcon.jam.movementmod");
val.LogMessage((object)"falcon.jam.movementmod has loaded successfully.");
((BaseUnityPlugin)this).Logger.LogInfo((object)"Stretching Legs!");
((BaseUnityPlugin)this).Logger.LogInfo((object)"Jumping Jacks!");
harmony.PatchAll(typeof(SecaMovement));
}
}
[HarmonyPatch(typeof(PlayerControllerB))]
[HarmonyPatch("Awake")]
internal class SecaMovement
{
private static readonly ManualLogSource logger = Logger.CreateLogSource("SecaMovement");
[HarmonyPostfix]
private static void Postfix(ref float ___sprintTime, ref float ___carryWeight)
{
___sprintTime = LethalHello.sprintTimeMultiplier;
___carryWeight = LethalHello.carryWeightMultiplier;
logger.LogInfo((object)("Successfully modified sprint time to: " + ___sprintTime));
logger.LogInfo((object)("Successfully modified carry weight to: " + ___carryWeight));
}
}
}