Please disclose if your mod was created primarily using AI tools by adding the 'AI Generated' category. Failing to do so may result in the mod being removed from Thunderstore.
Decompiled source of minesgobr v1.0.0
BepInEx/Plugins/minesgobrr.dll
Decompiled 2 years agousing 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 Unity.Netcode; using UnityEngine; using minesgobrr.patches; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] [assembly: AssemblyTitle("minesgobrr")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("minesgobrr")] [assembly: AssemblyCopyright("Copyright © 2024")] [assembly: AssemblyTrademark("")] [assembly: ComVisible(false)] [assembly: Guid("b242e951-98f3-4e85-a413-8db349c9af64")] [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 minesgobrr { [BepInPlugin("minesgobr", "minesgobr", "1.0.0")] public class BaseClass : BaseUnityPlugin { private const string modguid = "minesgobr"; private const string modname = "minesgobr"; private const string modversion = "1.0.0"; private readonly Harmony harmony = new Harmony("minesgobr"); private static BaseClass Instance; internal ManualLogSource mls; private void Awake() { if ((Object)(object)Instance == (Object)null) { Instance = this; } mls = Logger.CreateLogSource("minesgobr"); mls.LogInfo((object)"---- MINES MOD THINGY IS AWAKERN ---- :"); harmony.PatchAll(typeof(BaseClass)); harmony.PatchAll(typeof(RoundManager_LoadNewLevelpatch)); } } } namespace minesgobrr.patches { [HarmonyPatch(typeof(PlayerControllerB))] internal class PlayerControllerBpatch { [HarmonyPatch("Update")] [HarmonyPrefix] private static void jumpheightpatch(ref float ___jumpForce) { ___jumpForce = 30f; } } [HarmonyPatch(typeof(RoundManager))] internal class RoundManager_LoadNewLevelpatch { [HarmonyPatch("LoadNewLevel")] [HarmonyPrefix] private static void ModifyLevel(ref SelectableLevel newLevel) { //IL_0059: Unknown result type (might be due to invalid IL or missing references) //IL_005e: Unknown result type (might be due to invalid IL or missing references) //IL_006f: Unknown result type (might be due to invalid IL or missing references) //IL_0074: Unknown result type (might be due to invalid IL or missing references) //IL_0079: Unknown result type (might be due to invalid IL or missing references) //IL_0083: Expected O, but got Unknown if (!((NetworkBehaviour)RoundManager.Instance).IsHost) { return; } SelectableLevel val = newLevel; SpawnableMapObject[] spawnableMapObjects = val.spawnableMapObjects; SpawnableMapObject[] array = spawnableMapObjects; foreach (SpawnableMapObject val2 in array) { if ((Object)(object)val2.prefabToSpawn.GetComponentInChildren<Landmine>() != (Object)null) { val2.numberToSpawn = new AnimationCurve((Keyframe[])(object)new Keyframe[2] { new Keyframe(0f, 200f), new Keyframe(1f, 160f) }); } } } } }