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},
|
tool::{Stats, ToolKind},
|
||||||
CharacterState, Melee, StateUpdate,
|
CharacterState, Melee, StateUpdate,
|
||||||
},
|
},
|
||||||
event::LocalEvent,
|
|
||||||
outcome::Outcome,
|
|
||||||
states::{
|
states::{
|
||||||
behavior::{CharacterBehavior, JoinData},
|
behavior::{CharacterBehavior, JoinData},
|
||||||
utils::*,
|
utils::*,
|
||||||
@ -321,12 +319,6 @@ impl CharacterBehavior for Data {
|
|||||||
..*self
|
..*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 => {
|
StageSection::Recover => {
|
||||||
if self.timer < self.static_data.stage_data[stage_index].base_recover_duration {
|
if self.timer < self.static_data.stage_data[stage_index].base_recover_duration {
|
||||||
|
Loading…
Reference in New Issue
Block a user