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:
Cat Stevens 2023-02-12 19:34:42 -05:00
parent 6b12da92af
commit e19a497989
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 ### Changed
- Bats move slower and use a simple proportional controller to maintain altitude - Bats move slower and use a simple proportional controller to maintain altitude
- Bats now have less health - Bats now have less health
- Climbing no longer requires having 10 energy
### Removed ### Removed

View File

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