Merge branch 'catb0t/climb_no_min_energy' into 'master'

Don't require 10 energy for climbing

See merge request veloren/veloren!3798
This commit is contained in:
Samuel Keiffer 2023-02-14 03:21:49 +00:00
commit 5ca04365d5
2 changed files with 2 additions and 1 deletions

View File

@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed
- Bats move slower and use a simple proportional controller to maintain altitude
- Bats now have less health
- Climbing no longer requires having 10 energy
### Removed

View File

@ -748,7 +748,7 @@ pub fn handle_climb(data: &JoinData<'_>, update: &mut StateUpdate) -> bool {
.unwrap_or(false)
//&& update.vel.0.z < 0.0
&& data.body.can_climb()
&& update.energy.current() > 10.0
&& update.energy.current() > 1.0
{
update.character = CharacterState::Climb(climb::Data::create_adjusted_by_skills(data));
true