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 FlurryFix v1.0.2
FlurryFix.dll
Decompiled 2 years 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.Bootstrap; using EntityStates.Huntress.HuntressWeapon; using On.EntityStates.Huntress.HuntressWeapon; using RiskyMod.Survivors; using RiskyMod.Survivors.Huntress; using UnityEngine; using UnityEngine.Networking; [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.0", FrameworkDisplayName = "")] [assembly: AssemblyCompany("FlurryFix")] [assembly: AssemblyConfiguration("Debug")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0")] [assembly: AssemblyProduct("FlurryFix")] [assembly: AssemblyTitle("FlurryFix")] [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] [assembly: AssemblyVersion("1.0.0.0")] [module: UnverifiableCode] namespace FlurryFix { [BepInDependency(/*Could not decode attribute arguments.*/)] [BepInPlugin("com.Moffein.FlurryFix", "FlurryFix", "1.0.1")] public class FlurryFix : BaseUnityPlugin { [Serializable] [CompilerGenerated] private sealed class <>c { public static readonly <>c <>9 = new <>c(); public static hook_OnExit <>9__0_0; internal void <Awake>b__0_0(orig_OnExit orig, FireSeekingArrow self) { orig.Invoke(self); if (NetworkServer.active) { int num = self.maxArrowCount - self.firedArrowCount; for (int i = 0; i < num; i++) { self.arrowReloadTimer = 0f; self.FireOrbArrow(); } } } } public void Awake() { //IL_004c: Unknown result type (might be due to invalid IL or missing references) //IL_0051: Unknown result type (might be due to invalid IL or missing references) //IL_0057: Expected O, but got Unknown bool flag = true; if (Chainloader.PluginInfos.ContainsKey("com.RiskyLives.RiskyMod")) { flag = !RiskyModAppliedFix(); } if (!flag) { Debug.LogError((object)"FlurryFix: RiskyMod already applied fix. Code will not be run."); return; } object obj = <>c.<>9__0_0; if (obj == null) { hook_OnExit val = delegate(orig_OnExit orig, FireSeekingArrow self) { orig.Invoke(self); if (NetworkServer.active) { int num = self.maxArrowCount - self.firedArrowCount; for (int i = 0; i < num; i++) { self.arrowReloadTimer = 0f; self.FireOrbArrow(); } } }; <>c.<>9__0_0 = val; obj = (object)val; } FireSeekingArrow.OnExit += (hook_OnExit)obj; } [MethodImpl(MethodImplOptions.NoInlining | MethodImplOptions.NoOptimization)] private bool RiskyModAppliedFix() { return SurvivorsCore.enabled && HuntressCore.enabled; } } } namespace R2API.Utils { [AttributeUsage(AttributeTargets.Assembly)] public class ManualNetworkRegistrationAttribute : Attribute { } }