remove shovel outcome trigger from combomelee state

This commit is contained in:
flo666 2023-08-03 23:00:32 +02:00
parent 607af6f227
commit db6ebcd685

View File

@ -6,8 +6,6 @@ use crate::{
tool::{Stats, ToolKind},
CharacterState, Melee, StateUpdate,
},
event::LocalEvent,
outcome::Outcome,
states::{
behavior::{CharacterBehavior, JoinData},
utils::*,
@ -321,12 +319,6 @@ impl CharacterBehavior for Data {
..*self
});
}
// Send local event used for frontend shenanigans
if self.static_data.ability_info.tool == Some(ToolKind::Shovel) {
output_events.emit_local(LocalEvent::CreateOutcome(Outcome::GroundDig {
pos: data.pos.0 + *data.ori.look_dir() * (data.body.max_radius()),
}));
}
},
StageSection::Recover => {
if self.timer < self.static_data.stage_data[stage_index].base_recover_duration {