mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Don't require 10 energy for climbing
The infinite climb bug should be fixed by !3792 (Refactor energy and poise regen), so we can safely remove the need for the character to have at least 10 energy to climb. The minimum energy needed to start climbing is now 1 energy. This was suggested by James M#8698.
This commit is contained in:
parent
6b12da92af
commit
e19a497989
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user