Fixed errors from transitioning some states to keyframes.

This commit is contained in:
Sam 2020-09-28 19:38:35 -05:00 committed by jiminycrick
parent 21cf1e2168
commit e1634fa83a
3 changed files with 4 additions and 3 deletions

View File

@ -550,7 +550,7 @@ impl From<&CharacterAbility> for CharacterState {
swing_duration: *swing_duration,
recover_duration: *recover_duration,
},
stage_section: StageSection::Buildup,
stage_section: StageSection::Charge,
timer: Duration::default(),
exhausted: false,
charge_amount: 0.0,

View File

@ -98,7 +98,7 @@ impl CharacterBehavior for Data {
update.character = CharacterState::RepeaterRanged(Data {
static_data: self.static_data.clone(),
timer: Duration::default(),
stage_section: StageSection::Buildup,
stage_section: StageSection::Shoot,
reps_remaining: self.reps_remaining,
});
}
@ -164,7 +164,7 @@ impl CharacterBehavior for Data {
update.character = CharacterState::RepeaterRanged(Data {
static_data: self.static_data.clone(),
timer: Duration::default(),
stage_section: StageSection::Buildup,
stage_section: StageSection::Recover,
reps_remaining: self.reps_remaining,
});
}

View File

@ -18,6 +18,7 @@ impl CharacterBehavior for Data {
handle_ability3_input(&data, &mut update);
handle_dodge_input(&data, &mut update);
update
}