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 Modd.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("Modd")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Modd")]
[assembly: AssemblyCopyright("Copyright © 2024")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("debd42a6-586a-4757-9e9c-4b6f9739f50e")]
[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 Modd
{
[BepInPlugin("Marcuz.LowGravity", "Low Gravity", "1.0.0")]
public class Mod : BaseUnityPlugin
{
private const string modGUID = "Marcuz.LowGravity";
private const string modName = "Low Gravity";
private const string modVersion = "1.0.0";
private readonly Harmony harmony = new Harmony("Marcuz.LowGravity");
private static Mod Instance;
internal ManualLogSource mls;
private void Awake()
{
if ((Object)(object)Instance == (Object)null)
{
Instance = this;
}
mls = Logger.CreateLogSource("Marcuz.LowGravity");
mls.LogInfo((object)"Low Gravity Worked!");
harmony.PatchAll(typeof(Mod));
harmony.PatchAll(typeof(LowGravity));
}
}
}
namespace Modd.Patches
{
[HarmonyPatch(typeof(PlayerController))]
internal class LowGravity
{
[HarmonyPatch("Update")]
[HarmonyPostfix]
private static void LowGravityPatch(ref float ___gravity)
{
___gravity = 1f;
}
}
}