Some mods may be broken due to the recent Alloyed Collective update.
Decompiled source of SprintingOnTheScoreboard v1.0.1
plugins/SprintingOnTheScoreboard/SprintingOnTheScoreboard.dll
Decompiled a year agousing System; using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using System.Security; using System.Security.Permissions; using BepInEx; using BepInEx.Logging; using HarmonyLib; using Microsoft.CodeAnalysis; using RoR2; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)] [assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")] [assembly: AssemblyCompany("SprintingOnTheScoreboard")] [assembly: AssemblyConfiguration("Release")] [assembly: AssemblyFileVersion("1.0.1.0")] [assembly: AssemblyInformationalVersion("1.0.1+c16a78f87a715ca5aefa356ae004c6a72f9fbef9")] [assembly: AssemblyProduct("SprintingOnTheScoreboard")] [assembly: AssemblyTitle("SprintingOnTheScoreboard")] [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] [assembly: AssemblyVersion("1.0.1.0")] [module: UnverifiableCode] [module: RefSafetyRules(11)] namespace Microsoft.CodeAnalysis { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] internal sealed class EmbeddedAttribute : Attribute { } } namespace System.Runtime.CompilerServices { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] [AttributeUsage(AttributeTargets.Module, AllowMultiple = false, Inherited = false)] internal sealed class RefSafetyRulesAttribute : Attribute { public readonly int Version; public RefSafetyRulesAttribute(int P_0) { Version = P_0; } } } namespace SprintingOnTheScoreboard { [BepInPlugin("itsschwer.SprintingOnTheScoreboard", "SprintingOnTheScoreboard", "1.0.1")] public sealed class Plugin : BaseUnityPlugin { public const string GUID = "itsschwer.SprintingOnTheScoreboard"; public const string Author = "itsschwer"; public const string Name = "SprintingOnTheScoreboard"; public const string Version = "1.0.1"; internal static ManualLogSource Logger { get; private set; } private void Awake() { //IL_0030: Unknown result type (might be due to invalid IL or missing references) Logger.Sources.Remove((ILogSource)(object)((BaseUnityPlugin)this).Logger); Logger = Logger.CreateLogSource("itsschwer.SprintingOnTheScoreboard"); HarmonyException val = default(HarmonyException); try { new Harmony(((BaseUnityPlugin)this).Info.Metadata.GUID).PatchAll(); Logger.LogMessage((object)"Successfully patched."); } catch (object obj) when (((Func<bool>)delegate { // Could not convert BlockContainer to single expression object obj2 = ((obj is HarmonyException) ? obj : null); Unsafe.SkipInit(out int result); if (obj2 == null) { result = 0; } else { val = (HarmonyException)obj2; result = ((((Exception)(object)val).InnerException?.InnerException?.InnerException != null && ((Exception)(object)val).InnerException.InnerException.InnerException.Message.Contains("Parameter \"onlyAllowMovement\" not found in method static bool RoR2.PlayerCharacterMasterController::CanSendBodyInput")) ? 1 : 0); } return (byte)result != 0; }).Invoke()) { Logger.LogError((object)val); Logger.LogWarning((object)"Failed to patch! This mod has no effect on versions prior to the Seekers Of The Storm patch."); } } } } namespace SprintingOnTheScoreboard.Harmony { [HarmonyPatch] internal static class HarmonyPatches { [HarmonyPostfix] [HarmonyPatch(typeof(PlayerCharacterMasterController), "CanSendBodyInput")] private static void PlayerCharacterMasterController_CanSendBodyInput(bool __result, ref bool onlyAllowMovement) { if (__result) { onlyAllowMovement = false; } } } }