using 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 BoplFixedMath;
using HarmonyLib;
using Microsoft.CodeAnalysis;
[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
[assembly: IgnoresAccessChecksTo("Assembly-CSharp")]
[assembly: TargetFramework(".NETFramework,Version=v4.6", FrameworkDisplayName = ".NET Framework 4.6")]
[assembly: AssemblyCompany("ZeroAbilityCooldowns")]
[assembly: AssemblyConfiguration("Release")]
[assembly: AssemblyDescription("Removes the cooldowns from abilities in Bopl Battle")]
[assembly: AssemblyFileVersion("1.3.1.0")]
[assembly: AssemblyInformationalVersion("1.3.1+9cc224938e85561e2f15ce3bf1a83195ff6d2af8")]
[assembly: AssemblyProduct("ZeroAbilityCooldowns")]
[assembly: AssemblyTitle("ZeroAbilityCooldowns")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("1.3.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 ZeroAbilityCooldowns
{
[BepInPlugin("com.Mangochicken.ZeroAbilityCooldowns", "Zero Ability Cooldowns", "1.3.1")]
[BepInProcess("BoplBattle.exe")]
[BepInIncompatibility("com.shadow_dev.BoplPanel")]
public class ZeroAbilityCooldowns : BaseUnityPlugin
{
private const string ModID = "com.Mangochicken.ZeroAbilityCooldowns";
public const string ModName = "Zero Ability Cooldowns";
public const string Version = "1.3.1";
public static bool EnableAchievements { get; private set; }
private void Awake()
{
EnableAchievements = false;
Harmony.CreateAndPatchAll(Assembly.GetExecutingAssembly(), "com.Mangochicken.ZeroAbilityCooldowns");
((BaseUnityPlugin)this).Logger.LogInfo((object)"Plugin Zero Ability Cooldowns is loaded!");
}
}
[HarmonyPatch]
public class Patches
{
[HarmonyPatch(typeof(Ability), "GetCooldown")]
[HarmonyPostfix]
private static void AbilityPostfix(ref Fix __result)
{
//IL_0001: Unknown result type (might be due to invalid IL or missing references)
//IL_0006: Unknown result type (might be due to invalid IL or missing references)
__result = Fix.Zero;
}
[HarmonyPatch(typeof(InstantAbility), "GetCooldown")]
[HarmonyPostfix]
private static void InstantAbilityPostfix(ref Fix __result)
{
//IL_0001: Unknown result type (might be due to invalid IL or missing references)
//IL_0006: Unknown result type (might be due to invalid IL or missing references)
__result = Fix.Zero;
}
[HarmonyPatch(typeof(AchievementHandler), "TryAwardAchievement")]
[HarmonyPrefix]
private static bool AchievementPrefix()
{
return ZeroAbilityCooldowns.EnableAchievements;
}
}
}
namespace System.Runtime.CompilerServices
{
[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)]
internal sealed class IgnoresAccessChecksToAttribute : Attribute
{
public IgnoresAccessChecksToAttribute(string assemblyName)
{
}
}
}