fix: better scaling

This commit is contained in:
Adam Whitehurst 2021-05-30 13:06:01 -07:00
parent 66cf4ab74c
commit 6dc1c05089

View File

@ -308,7 +308,10 @@ impl Buff {
),
BuffKind::Frozen => (
vec![
BuffEffect::MovementSpeed(f32::min(0.1, 0.75 - nn_scaling(data.strength))),
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))),
],
data.duration,