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 HarmonyLib;
using NoWeightGain.Patches;
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("NoWeightGain")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("NoWeightGain")]
[assembly: AssemblyCopyright("Copyright © 2023")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("fb805fe3-af50-4058-b510-269139cc2a0f")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace NoWeightGain
{
[BepInPlugin("Poseidon.NoWeightGain", "No Weight Gain", "1.0.0.0")]
public class NoWeight : BaseUnityPlugin
{
private const string modGUID = "Poseidon.NoWeightGain";
private const string modName = "No Weight Gain";
private const string modVersion = "1.0.0.0";
private readonly Harmony harmony = new Harmony("Poseidon.NoWeightGain");
private static NoWeight Instance;
internal ManualLogSource nls;
private void Awake()
{
if ((Object)(object)Instance == (Object)null)
{
Instance = this;
}
nls = Logger.CreateLogSource("Poseidon.NoWeightGain");
nls.LogInfo((object)"Mod is Active");
harmony.PatchAll(typeof(NoWeight));
harmony.PatchAll(typeof(PlayerControllerBPatch));
}
}
}
namespace NoWeightGain.Patches
{
[HarmonyPatch(typeof(PlayerControllerB))]
internal class PlayerControllerBPatch
{
[HarmonyPatch("Update")]
[HarmonyPostfix]
private static void noweightpatch(ref float ___carryWeight)
{
___carryWeight = 1f;
}
}
}