From 24849f4a6bba463e120c36cf69953887774db220 Mon Sep 17 00:00:00 2001 From: Arsenii Fomin Date: Mon, 19 Feb 2024 21:13:04 +0700 Subject: [PATCH 1/2] Changed ModifyAttackSpeed to by multiplicative not additive --- EpicLoot/MagicItemEffects/ModifyAttackSpeed.cs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/EpicLoot/MagicItemEffects/ModifyAttackSpeed.cs b/EpicLoot/MagicItemEffects/ModifyAttackSpeed.cs index 45abc4f74..d05b41f77 100644 --- a/EpicLoot/MagicItemEffects/ModifyAttackSpeed.cs +++ b/EpicLoot/MagicItemEffects/ModifyAttackSpeed.cs @@ -1,5 +1,6 @@ using HarmonyLib; using JetBrains.Annotations; +using EpicLoot; namespace EpicLoot.MagicItemEffects { @@ -18,13 +19,16 @@ public static double ModifyAttackSpeed(Character character, double speed) { return speed; } + + double bonus = 0.0; ModifyWithLowHealth.Apply(player, MagicEffectType.ModifyAttackSpeed, effect => { - - speed += player.GetTotalActiveMagicEffectValue(effect, 0.01f); + bonus += player.GetTotalActiveMagicEffectValue(effect, 0.01f); }); - + + speed *= (1.0 + bonus); + return speed; } [UsedImplicitly] From 3f4c103efd40255ee8b65b2166561f058a3ca6ea Mon Sep 17 00:00:00 2001 From: Arsenii Fomin Date: Tue, 20 Feb 2024 11:30:15 +0700 Subject: [PATCH 2/2] Hotfix --- EpicLoot/MagicItemEffects/ModifyAttackSpeed.cs | 1 - 1 file changed, 1 deletion(-) diff --git a/EpicLoot/MagicItemEffects/ModifyAttackSpeed.cs b/EpicLoot/MagicItemEffects/ModifyAttackSpeed.cs index d05b41f77..f65f56ef1 100644 --- a/EpicLoot/MagicItemEffects/ModifyAttackSpeed.cs +++ b/EpicLoot/MagicItemEffects/ModifyAttackSpeed.cs @@ -1,6 +1,5 @@ using HarmonyLib; using JetBrains.Annotations; -using EpicLoot; namespace EpicLoot.MagicItemEffects {