From ee2f0f55fa0b3361017c737286432231fad48667 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludvig=20B=C3=B6klin?= Date: Sun, 24 Jan 2021 12:06:23 +0100 Subject: [PATCH] Glider deploy stamina cost value tweak --- common/src/states/glide_wield.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/states/glide_wield.rs b/common/src/states/glide_wield.rs index 736ee67a0a..1faccdf166 100644 --- a/common/src/states/glide_wield.rs +++ b/common/src/states/glide_wield.rs @@ -18,7 +18,7 @@ impl CharacterBehavior for Data { // If not on the ground while wielding glider enter gliding state if !data.physics.on_ground { // Expend energy to slow a fall - let energy_cost = (0.5 * data.vel.0.z.min(0.0).powi(2)) as i32; + let energy_cost = (0.5 * (data.vel.0.z + 15.0).min(0.0).powi(2)) as i32; if update .energy .try_change_by(-energy_cost, EnergySource::Glide)