Removed ability to 'droideka' through dungeons.

This commit is contained in:
Sam 2021-09-02 19:48:30 -04:00
parent 5f08089bd9
commit 0a3b541940

View File

@ -97,17 +97,12 @@ impl CharacterBehavior for Data {
..*self
});
} else {
// Keeps rolling if sufficient energy, else transitions to recover section of
// stage
if input_is_pressed(data, self.static_data.ability_info.input) {
reset_state(self, data, &mut update);
} else {
update.character = CharacterState::Roll(Data {
timer: Duration::default(),
stage_section: StageSection::Recover,
..*self
});
}
// Transition to recover section of stage
update.character = CharacterState::Roll(Data {
timer: Duration::default(),
stage_section: StageSection::Recover,
..*self
});
}
},
StageSection::Recover => {
@ -152,19 +147,3 @@ impl CharacterBehavior for Data {
update
}
}
fn reset_state(data: &Data, join: &JoinData, update: &mut StateUpdate) {
handle_input(join, update, data.static_data.ability_info.input);
if let CharacterState::Roll(r) = &mut update.character {
r.was_combo = data.was_combo;
r.was_sneak = data.was_sneak;
r.was_wielded = data.was_wielded;
if matches!(r.stage_section, StageSection::Movement) {
r.timer = Duration::default();
r.stage_section = StageSection::Recover;
} else {
r.stage_section = StageSection::Movement;
}
}
}