Block Rebalence
Makes block slightly more balenced
About this mod Author’s original text
using BepInEx;
using HarmonyLib;
using System.Reflection;
[assembly: AssemblyVersion(BlockRebalence.Main.Version)]
namespace BlockRebalence {
[BepInDependency("com.willis.rounds.unbound")]
[BepInPlugin(ModId,ModName,Version)]
[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";
void Awake() {
new Harmony(ModId).PatchAll();
}
}
[HarmonyPatch(typeof(Block),nameof(Block.Cooldown))]
[HarmonyPriority(Priority.Last)]
public static class BlockCooldownMinPatch{
static void Postfix(ref float __result) {
if(__result<0.3f) __result=0.3f;
}
}
[HarmonyPatch(typeof(Block),nameof(Block.Update))]
public static class BlockCooldownWaitTillDoneBlockingPatch {
static void Prefix(Block __instance) {
if(__instance.input && __instance.IsBlocking()) __instance.counter=-TimeHandler.deltaTime;
}
}
[HarmonyPatch(typeof(Block),nameof(Block.Start))]
public static class BlockStopEchoBlockOverlap {
static void Prefix(Block __instance) {
__instance.timeBetweenBlocks=0.45f;
}
}
}
Install & use Install: BepInEx plugin
- The archive from playbuff is the mod itself — usually a BepInEx plugin (a .dll or a plugin folder once unzipped).
- Recommended: use a community mod manager (such as r2modman) — pick this game, import the mod, and the manager sets up BepInEx and its dependencies for you.
- Manual route: install the BepInEx loader in the game folder, then drop the unzipped .dll or plugin folder into BepInEx/plugins/.
- Launch the game — the BepInEx console logs every plugin it loads; seeing this mod in the log means it is installed.
Mods with listed dependencies need those installed too, or they will not load. Options are usually changed in-game or in the plugin's config file.
Install these first, or the mod will not work: