Due to update 2.4.3, some mods may no longer function. FixedConfig may be necessary.
Decompiled source of CooldownConfig v1.0.0
CooldownConfig.dll
Decompiled an hour agousing System; using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using BepInEx; using BepInEx.Configuration; using BoplFixedMath; using HarmonyLib; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)] [assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")] [assembly: AssemblyCompany("CooldownConfig")] [assembly: AssemblyConfiguration("Release")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0")] [assembly: AssemblyProduct("CooldownConfig")] [assembly: AssemblyTitle("CooldownConfig")] [assembly: AssemblyVersion("1.0.0.0")] namespace CooldownConfig; internal static class Constants { public const string ModVersion = "1.0.0"; public const string ModAuthor = "Shayos"; public const string ModName = "CooldownConfig"; public const string ModId = "com.Shayos.CooldownConfig"; public const string Banner = "+-----------------------------------------------------------------------------------------------------------+\n| |\n| ______________ _______________ __ __ _____________ __ ______ _________________________________ |\n| ___ ____/_ / / /_ ____/__ //_/ _ \\/ /_ __ \\_ / / / ___ |/ /__ |__ __ \\__ /___ ____/ |\n| __ /_ _ / / /_ / __ ,< __ /_ / / / / / / __ /|_/ /__ /| |_ /_/ /_ / __ __/ |\n| _ __/ / /_/ / / /___ _ /| | _ / / /_/ // /_/ / _ / / / _ ___ | ____/_ /___ /___ |\n| /_/ \\____/ \\____/ /_/ |_| /_/ \\____/ \\____/ /_/ /_/ /_/ |_/_/ /_____/_____/ |\n| |\n+-----------------------------------------------------------------------------------------------------------+"; } [HarmonyPatch(typeof(Ability), "GetCooldown")] internal static class Ability_GetCooldown_Patch { public static void Postfix(ref Fix __result) { //IL_0002: Unknown result type (might be due to invalid IL or missing references) //IL_0012: Unknown result type (might be due to invalid IL or missing references) //IL_0017: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Unknown result type (might be due to invalid IL or missing references) //IL_0024: Unknown result type (might be due to invalid IL or missing references) //IL_0029: Unknown result type (might be due to invalid IL or missing references) __result = __result * (Fix)(long)Plugin.CooldownPercent.Value / (Fix)100L; } } [HarmonyPatch(typeof(InstantAbility), "GetCooldown")] internal static class InstantAbility_GetCooldown_Patch { public static void Postfix(ref Fix __result) { //IL_0002: Unknown result type (might be due to invalid IL or missing references) //IL_0012: Unknown result type (might be due to invalid IL or missing references) //IL_0017: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Unknown result type (might be due to invalid IL or missing references) //IL_0024: Unknown result type (might be due to invalid IL or missing references) //IL_0029: Unknown result type (might be due to invalid IL or missing references) __result = __result * (Fix)(long)Plugin.CooldownPercent.Value / (Fix)100L; } } [BepInPlugin("com.Shayos.CooldownConfig", "CooldownConfig", "1.0.0")] public class Plugin : BaseUnityPlugin { internal static ConfigEntry<int> CooldownPercent; private void Awake() { //IL_0023: Unknown result type (might be due to invalid IL or missing references) //IL_002d: Expected O, but got Unknown //IL_0037: Unknown result type (might be due to invalid IL or missing references) CooldownPercent = ((BaseUnityPlugin)this).Config.Bind<int>("Gameplay", "CooldownPercent", 0, new ConfigDescription("Ability cooldowns as a percentage of normal. 0 = no cooldowns, 100 = normal.", (AcceptableValueBase)(object)new AcceptableValueRange<int>(0, 100), Array.Empty<object>())); new Harmony("com.Shayos.CooldownConfig").PatchAll(); ((BaseUnityPlugin)this).Logger.LogInfo((object)"\n+-----------------------------------------------------------------------------------------------------------+\n| |\n| ______________ _______________ __ __ _____________ __ ______ _________________________________ |\n| ___ ____/_ / / /_ ____/__ //_/ _ \\/ /_ __ \\_ / / / ___ |/ /__ |__ __ \\__ /___ ____/ |\n| __ /_ _ / / /_ / __ ,< __ /_ / / / / / / __ /|_/ /__ /| |_ /_/ /_ / __ __/ |\n| _ __/ / /_/ / / /___ _ /| | _ / / /_/ // /_/ / _ / / / _ ___ | ____/_ /___ /___ |\n| /_/ \\____/ \\____/ /_/ |_| /_/ \\____/ \\____/ /_/ /_/ /_/ |_/_/ /_____/_____/ |\n| |\n+-----------------------------------------------------------------------------------------------------------+"); ((BaseUnityPlugin)this).Logger.LogInfo((object)$"Cooldowns set to {CooldownPercent.Value}%"); } }