mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
remove shovel outcome trigger from combomelee state
This commit is contained in:
parent
607af6f227
commit
db6ebcd685
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user