Better equip durations, fix roll bug, slow down while attacking, smoother gliding, stronger npcs, giants

This commit is contained in:
timokoesters
2020-03-26 20:02:01 +01:00
parent e573fbbce5
commit 8010e5afb4
24 changed files with 38 additions and 32 deletions

View File

@ -57,6 +57,7 @@ impl CharacterAbility {
CharacterAbility::Roll => {
data.physics.on_ground
&& data.body.is_humanoid()
&& data.vel.0.xy().magnitude_squared() > 0.5
&& update
.energy
.try_change_by(-150, EnergySource::Ability)