mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Restore old boost stick behavior
This commit is contained in:
parent
6c129c9b8d
commit
22652cfa37
@ -122,11 +122,11 @@ impl ToolData {
|
||||
Debug(kind) => match kind {
|
||||
DebugKind::Boost => vec![
|
||||
CharacterAbility::Boost {
|
||||
duration: Duration::from_millis(100),
|
||||
duration: Duration::from_millis(50),
|
||||
only_up: false,
|
||||
},
|
||||
CharacterAbility::Boost {
|
||||
duration: Duration::from_millis(100),
|
||||
duration: Duration::from_millis(50),
|
||||
only_up: true,
|
||||
},
|
||||
],
|
||||
|
@ -29,9 +29,9 @@ impl CharacterBehavior for Data {
|
||||
// Still going
|
||||
if self.duration != Duration::default() {
|
||||
if self.only_up {
|
||||
update.vel.0.z = 30.0;
|
||||
update.vel.0.z += 500.0 * data.dt.0;
|
||||
} else {
|
||||
update.vel.0 = data.inputs.look_dir * 30.0;
|
||||
update.vel.0 += data.inputs.look_dir * 500.0 * data.dt.0;
|
||||
}
|
||||
update.character = CharacterState::Boost(Data {
|
||||
duration: self
|
||||
|
Loading…
Reference in New Issue
Block a user