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:
@ -550,7 +550,7 @@ impl From<&CharacterAbility> for CharacterState {
|
|||||||
swing_duration: *swing_duration,
|
swing_duration: *swing_duration,
|
||||||
recover_duration: *recover_duration,
|
recover_duration: *recover_duration,
|
||||||
},
|
},
|
||||||
stage_section: StageSection::Buildup,
|
stage_section: StageSection::Charge,
|
||||||
timer: Duration::default(),
|
timer: Duration::default(),
|
||||||
exhausted: false,
|
exhausted: false,
|
||||||
charge_amount: 0.0,
|
charge_amount: 0.0,
|
||||||
|
@ -98,7 +98,7 @@ impl CharacterBehavior for Data {
|
|||||||
update.character = CharacterState::RepeaterRanged(Data {
|
update.character = CharacterState::RepeaterRanged(Data {
|
||||||
static_data: self.static_data.clone(),
|
static_data: self.static_data.clone(),
|
||||||
timer: Duration::default(),
|
timer: Duration::default(),
|
||||||
stage_section: StageSection::Buildup,
|
stage_section: StageSection::Shoot,
|
||||||
reps_remaining: self.reps_remaining,
|
reps_remaining: self.reps_remaining,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -164,7 +164,7 @@ impl CharacterBehavior for Data {
|
|||||||
update.character = CharacterState::RepeaterRanged(Data {
|
update.character = CharacterState::RepeaterRanged(Data {
|
||||||
static_data: self.static_data.clone(),
|
static_data: self.static_data.clone(),
|
||||||
timer: Duration::default(),
|
timer: Duration::default(),
|
||||||
stage_section: StageSection::Buildup,
|
stage_section: StageSection::Recover,
|
||||||
reps_remaining: self.reps_remaining,
|
reps_remaining: self.reps_remaining,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -18,6 +18,7 @@ impl CharacterBehavior for Data {
|
|||||||
handle_ability3_input(&data, &mut update);
|
handle_ability3_input(&data, &mut update);
|
||||||
handle_dodge_input(&data, &mut update);
|
handle_dodge_input(&data, &mut update);
|
||||||
|
|
||||||
|
|
||||||
update
|
update
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user