mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Glider deploy stamina cost value tweak
This commit is contained in:
parent
30168e375f
commit
f42869f6ec
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user