using System;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using HarmonyLib;
using Il2CppGB.Networking.Components.Client;
using MelonLoader;
using Microsoft.CodeAnalysis;
using NoSpawnCooldown;
[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: MelonInfo(typeof(Mod), "NoSpawnCooldown", "1.0.0", "TheUltimateNuke", null)]
[assembly: MelonGame("Boneloaf", "Gang Beasts")]
[assembly: TargetFramework(".NETCoreApp,Version=v6.0", FrameworkDisplayName = ".NET 6.0")]
[assembly: AssemblyVersion("0.0.0.0")]
[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 NoSpawnCooldown
{
[HarmonyPatch(typeof(GBClientItemSpawnInterface), "Update")]
internal static class SpawnCooldownPatch
{
private static void Postfix(GBClientItemSpawnInterface __instance)
{
__instance._currentRequestCooldown = float.MaxValue;
}
}
public class Mod : MelonMod
{
public static class BuildInfo
{
public const string Name = "NoSpawnCooldown";
public const string Author = "TheUltimateNuke";
public const string Version = "1.0.0";
public const string DownloadLink = null;
}
public static Instance Logger => Melon<Mod>.Logger;
public override void OnInitializeMelon()
{
((MelonBase)this).LoggerInstance.Msg(ConsoleColor.Green, "Mod NoSpawnCooldown initialized!");
}
}
}