From daa18dd92aff5f67e75e25a379e809cee0c8985a Mon Sep 17 00:00:00 2001 From: Adam Whitehurst Date: Sun, 30 May 2021 13:42:47 -0700 Subject: [PATCH] fix: remove limit --- common/src/comp/buff.rs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/common/src/comp/buff.rs b/common/src/comp/buff.rs index a314561611..eac4ce7b77 100644 --- a/common/src/comp/buff.rs +++ b/common/src/comp/buff.rs @@ -65,7 +65,7 @@ pub enum BuffKind { /// Slows movement and attack speed. /// Strength scales the attack speed debuff non-linearly. 0.5 is ~50% /// speed, 1.0 is 33% speed. Movement speed debuff is scaled to be slightly - /// smaller than attack speed debuff. Both are limited to a minimum of 0.1 + /// smaller than attack speed debuff. Frozen, } @@ -311,11 +311,8 @@ impl Buff { ), BuffKind::Frozen => ( vec![ - BuffEffect::MovementSpeed(f32::min( - 0.1, - f32::powf(1.0 - nn_scaling(data.strength), 1.1), - )), - BuffEffect::AttackSpeed(f32::min(0.1, 1.0 - nn_scaling(data.strength))), + BuffEffect::MovementSpeed(f32::powf(1.0 - nn_scaling(data.strength), 1.1)), + BuffEffect::AttackSpeed(1.0 - nn_scaling(data.strength)), ], data.duration, ),