Please disclose if any significant portion of your mod was created 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 DoomboxRoulette v1.0.0
DoomboxRoulette.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 DoomboxRoulette.Patches; using GameNetcodeStuff; using HarmonyLib; 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("DoomboxRoulette")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("DoomboxRoulette")] [assembly: AssemblyCopyright("Copyright © 2024")] [assembly: AssemblyTrademark("")] [assembly: ComVisible(false)] [assembly: Guid("bf27e816-b147-4a2d-8e97-c6a75e35a88c")] [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 DoomboxRoulette { [BepInPlugin("bostachio.DoomboxRoulette", "Doombox Roulette Mod", "1.0.0")] public class DoomboxRouletteBase : BaseUnityPlugin { private const string modGUID = "bostachio.DoomboxRoulette"; private const string modName = "Doombox Roulette Mod"; private const string modVersion = "1.0.0"; private readonly Harmony harmony = new Harmony("bostachio.DoomboxRoulette"); private static DoomboxRouletteBase Instance; internal ManualLogSource mls; private void Awake() { if ((Object)(object)Instance == (Object)null) { Instance = this; } mls = Logger.CreateLogSource("bostachio.DoomboxRoulette"); mls.LogInfo((object)"The doombox roulette mod has loaded."); harmony.PatchAll(typeof(DoomboxRouletteBase)); harmony.PatchAll(typeof(PlayerControllerBPatch)); harmony.PatchAll(typeof(BoomboxItemPatch)); } } } namespace DoomboxRoulette.Patches { [HarmonyPatch(typeof(BoomboxItem))] internal class BoomboxItemPatch { [HarmonyPatch("ItemActivate")] [HarmonyPostfix] private static void doomboxSurprisePatch(ref PlayerControllerB ___playerHeldBy) { //IL_0003: Unknown result type (might be due to invalid IL or missing references) //IL_000d: Unknown result type (might be due to invalid IL or missing references) //IL_0013: Unknown result type (might be due to invalid IL or missing references) ___playerHeldBy.KillPlayer(Vector3.zero, true, (CauseOfDeath)4, 3, default(Vector3)); } } [HarmonyPatch(typeof(PlayerControllerB))] internal class PlayerControllerBPatch { [HarmonyPatch("Update")] [HarmonyPostfix] private static void infiniteSprintPatch(ref float ___sprintMeter) { ___sprintMeter = 1f; } } }