mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Fixed errors from transitioning some states to keyframes.
This commit is contained in:
parent
21cf1e2168
commit
e1634fa83a
@ -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,
|
||||
|
@ -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,
|
||||
});
|
||||
}
|
||||
|
@ -18,6 +18,7 @@ impl CharacterBehavior for Data {
|
||||
handle_ability3_input(&data, &mut update);
|
||||
handle_dodge_input(&data, &mut update);
|
||||
|
||||
|
||||
update
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user