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.HighGravity", "High Gravity", "1.0.0")]
public class Mod : BaseUnityPlugin
{
private const string modGUID = "Marcuz.HighGravity";
private const string modName = "High Gravity";
private const string modVersion = "1.0.0";
private readonly Harmony harmony = new Harmony("Marcuz.HighGravity");
private static Mod Instance;
internal ManualLogSource mls;
private void Awake()
{
if ((Object)(object)Instance == (Object)null)
{
Instance = this;
}
mls = Logger.CreateLogSource("Marcuz.HighGravity");
mls.LogInfo((object)"High Gravity Worked!");
harmony.PatchAll(typeof(Mod));
harmony.PatchAll(typeof(HighGravity));
}
}
}
namespace Modd.Patches
{
[HarmonyPatch(typeof(PlayerController))]
internal class HighGravity
{
[HarmonyPatch("Update")]
[HarmonyPostfix]
private static void HighGravityPatch(ref float ___gravity)
{
___gravity = 250f;
}
}
}