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 HarmonyLib;
using Microsoft.CodeAnalysis;
using UnityEngine;
[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(/*Could not decode attribute arguments.*/)]
[assembly: TargetFramework(".NETFramework,Version=v4.7.1", FrameworkDisplayName = ".NET Framework 4.7.1")]
[assembly: SecurityPermission(8, SkipVerification = true)]
[assembly: AssemblyVersion("0.1.0.0")]
[module: UnverifiableCode]
[module: RefSafetyRules(11)]
namespace Microsoft.CodeAnalysis
{
[CompilerGenerated]
[Embedded]
internal sealed class EmbeddedAttribute : Attribute
{
}
}
namespace System.Runtime.CompilerServices
{
[CompilerGenerated]
[Embedded]
[AttributeUsage(/*Could not decode attribute arguments.*/)]
internal sealed class RefSafetyRulesAttribute : Attribute
{
public readonly int Version;
public RefSafetyRulesAttribute(int P_0)
{
Version = P_0;
}
}
}
namespace BlockRebalence
{
[BepInDependency(/*Could not decode attribute arguments.*/)]
[BepInPlugin("Systems.R00t.BlockRebalance", "Block Rebalance", "0.1.0")]
[BepInProcess("Rounds.exe")]
public class Main : BaseUnityPlugin
{
private const string ModId = "Systems.R00t.BlockRebalance";
private const string ModName = "Block Rebalance";
public const string Version = "0.1.0";
private void Awake()
{
//IL_0005: Unknown result type (might be due to invalid IL or missing references)
new Harmony("Systems.R00t.BlockRebalance").PatchAll();
}
}
[HarmonyPatch(/*Could not decode attribute arguments.*/)]
[HarmonyPriority(0)]
public static class BlockCooldownMinPatch : Object
{
private static void Postfix(ref float __result)
{
if (__result < 0.3f)
{
__result = 0.3f;
}
}
}
[HarmonyPatch(/*Could not decode attribute arguments.*/)]
public static class BlockCooldownWaitTillDoneBlockingPatch : Object
{
private static void Prefix(Block __instance)
{
if (Object.op_Implicit((Object)(object)__instance.input) && __instance.IsBlocking())
{
__instance.counter = 0f - TimeHandler.deltaTime;
}
}
}
[HarmonyPatch(/*Could not decode attribute arguments.*/)]
public static class BlockStopEchoBlockOverlap : Object
{
private static void Prefix(Block __instance)
{
__instance.timeBetweenBlocks = 0.45f;
}
}
}