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 FS Arena Fix v1.1.2
FS_Arena_Fix.dll
Decompiled 2 months agousing System; using System.Collections; using System.Collections.Generic; 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 Microsoft.CodeAnalysis; using On.RoR2; using RoR2; using UnityEngine; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] [assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")] [assembly: AssemblyCompany("FS_Arena_Fix")] [assembly: AssemblyConfiguration("Debug")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0+abb823b175229cd92ce16f5de21283bb65b100e3")] [assembly: AssemblyProduct("FS_Arena_Fix")] [assembly: AssemblyTitle("FS_Arena_Fix")] [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] [assembly: AssemblyVersion("1.0.0.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 FS_Arena_Fix { [BepInPlugin("Onyx.FS_Arena_Fix", "FS_Arena_Fix", "1.1.2")] public class FS_Arena_Fix : BaseUnityPlugin { [CompilerGenerated] private sealed class <MiddleRingFalling>d__5 : IEnumerator<object>, IEnumerator, IDisposable { private int <>1__state; private object <>2__current; public orig_MiddleRingFalling orig; public MeridianEventTriggerInteraction self; public FS_Arena_Fix <>4__this; private IEnumerator <enumerator>5__1; object IEnumerator<object>.Current { [DebuggerHidden] get { return <>2__current; } } object IEnumerator.Current { [DebuggerHidden] get { return <>2__current; } } [DebuggerHidden] public <MiddleRingFalling>d__5(int <>1__state) { this.<>1__state = <>1__state; } [DebuggerHidden] void IDisposable.Dispose() { <enumerator>5__1 = null; <>1__state = -2; } private bool MoveNext() { //IL_003b: Unknown result type (might be due to invalid IL or missing references) //IL_0045: Expected O, but got Unknown switch (<>1__state) { default: return false; case 0: <>1__state = -1; <enumerator>5__1 = orig.Invoke(self); break; case 1: <>1__state = -1; break; } if (<enumerator>5__1.MoveNext()) { <>2__current = (object)new WaitForFixedUpdate(); <>1__state = 1; return true; } return false; } bool IEnumerator.MoveNext() { //ILSpy generated this explicit interface implementation from .override directive in MoveNext return this.MoveNext(); } [DebuggerHidden] void IEnumerator.Reset() { throw new NotSupportedException(); } } [CompilerGenerated] private sealed class <OuterRingFalling>d__6 : IEnumerator<object>, IEnumerator, IDisposable { private int <>1__state; private object <>2__current; public orig_OuterRingFalling orig; public MeridianEventTriggerInteraction self; public FS_Arena_Fix <>4__this; private IEnumerator <enumerator>5__1; object IEnumerator<object>.Current { [DebuggerHidden] get { return <>2__current; } } object IEnumerator.Current { [DebuggerHidden] get { return <>2__current; } } [DebuggerHidden] public <OuterRingFalling>d__6(int <>1__state) { this.<>1__state = <>1__state; } [DebuggerHidden] void IDisposable.Dispose() { <enumerator>5__1 = null; <>1__state = -2; } private bool MoveNext() { //IL_003b: Unknown result type (might be due to invalid IL or missing references) //IL_0045: Expected O, but got Unknown switch (<>1__state) { default: return false; case 0: <>1__state = -1; <enumerator>5__1 = orig.Invoke(self); break; case 1: <>1__state = -1; break; } if (<enumerator>5__1.MoveNext()) { <>2__current = (object)new WaitForFixedUpdate(); <>1__state = 1; return true; } return false; } bool IEnumerator.MoveNext() { //ILSpy generated this explicit interface implementation from .override directive in MoveNext return this.MoveNext(); } [DebuggerHidden] void IEnumerator.Reset() { throw new NotSupportedException(); } } [CompilerGenerated] private sealed class <RotateHead>d__7 : IEnumerator<object>, IEnumerator, IDisposable { private int <>1__state; private object <>2__current; public orig_RotateHead orig; public MeridianEventTriggerInteraction self; public FS_Arena_Fix <>4__this; private float <timeElapsed>5__1; private IEnumerator <enumerator>5__2; object IEnumerator<object>.Current { [DebuggerHidden] get { return <>2__current; } } object IEnumerator.Current { [DebuggerHidden] get { return <>2__current; } } [DebuggerHidden] public <RotateHead>d__7(int <>1__state) { this.<>1__state = <>1__state; } [DebuggerHidden] void IDisposable.Dispose() { <enumerator>5__2 = null; <>1__state = -2; } private bool MoveNext() { //IL_0056: Unknown result type (might be due to invalid IL or missing references) //IL_0060: Expected O, but got Unknown switch (<>1__state) { default: return false; case 0: <>1__state = -1; <timeElapsed>5__1 = 0f; self.ringFallOffTime = 2000f; <enumerator>5__2 = orig.Invoke(self); break; case 1: <>1__state = -1; <timeElapsed>5__1 += Time.deltaTime; break; } if (<timeElapsed>5__1 < 10f && <enumerator>5__2.MoveNext()) { <>2__current = (object)new WaitForFixedUpdate(); <>1__state = 1; return true; } return false; } bool IEnumerator.MoveNext() { //ILSpy generated this explicit interface implementation from .override directive in MoveNext return this.MoveNext(); } [DebuggerHidden] void IEnumerator.Reset() { throw new NotSupportedException(); } } public const string PluginGUID = "Onyx.FS_Arena_Fix"; public const string PluginAuthor = "Onyx"; public const string PluginName = "FS_Arena_Fix"; public const string PluginVersion = "1.1.2"; public void Awake() { //IL_0014: Unknown result type (might be due to invalid IL or missing references) //IL_001e: Expected O, but got Unknown //IL_0026: Unknown result type (might be due to invalid IL or missing references) //IL_0030: Expected O, but got Unknown //IL_0038: Unknown result type (might be due to invalid IL or missing references) //IL_0042: Expected O, but got Unknown Log.Init(((BaseUnityPlugin)this).Logger); MeridianEventTriggerInteraction.RotateHead += new hook_RotateHead(RotateHead); MeridianEventTriggerInteraction.OuterRingFalling += new hook_OuterRingFalling(OuterRingFalling); MeridianEventTriggerInteraction.MiddleRingFalling += new hook_MiddleRingFalling(MiddleRingFalling); } [IteratorStateMachine(typeof(<MiddleRingFalling>d__5))] private IEnumerator MiddleRingFalling(orig_MiddleRingFalling orig, MeridianEventTriggerInteraction self) { //yield-return decompiler failed: Unexpected instruction in Iterator.Dispose() return new <MiddleRingFalling>d__5(0) { <>4__this = this, orig = orig, self = self }; } [IteratorStateMachine(typeof(<OuterRingFalling>d__6))] private IEnumerator OuterRingFalling(orig_OuterRingFalling orig, MeridianEventTriggerInteraction self) { //yield-return decompiler failed: Unexpected instruction in Iterator.Dispose() return new <OuterRingFalling>d__6(0) { <>4__this = this, orig = orig, self = self }; } [IteratorStateMachine(typeof(<RotateHead>d__7))] private IEnumerator RotateHead(orig_RotateHead orig, MeridianEventTriggerInteraction self) { //yield-return decompiler failed: Unexpected instruction in Iterator.Dispose() return new <RotateHead>d__7(0) { <>4__this = this, orig = orig, self = self }; } } internal static class Log { private static ManualLogSource _logSource; internal static void Init(ManualLogSource logSource) { _logSource = logSource; } internal static void Debug(object data) { _logSource.LogDebug(data); } internal static void Error(object data) { _logSource.LogError(data); } internal static void Fatal(object data) { _logSource.LogFatal(data); } internal static void Info(object data) { _logSource.LogInfo(data); } internal static void Message(object data) { _logSource.LogMessage(data); } internal static void Warning(object data) { _logSource.LogWarning(data); } } }