mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Regen energy when sitting.
This commit is contained in:
parent
175fea98ef
commit
0446a56f00
@ -75,7 +75,7 @@ impl<'a> System<'a> for Sys {
|
||||
|
||||
// Accelerate recharging energy if not wielding.
|
||||
match character_state {
|
||||
CharacterState::Idle { .. } => {
|
||||
CharacterState::Idle { .. } | CharacterState::Sit { .. } => {
|
||||
if {
|
||||
let energy = energy.get_unchecked();
|
||||
energy.current() < energy.maximum()
|
||||
|
Loading…
Reference in New Issue
Block a user