Regen energy when sitting.

This commit is contained in:
Shane Handley 2020-03-26 18:23:57 +11:00
parent 6123d0bf63
commit 2a5f50512f

View File

@ -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()