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:
@ -122,11 +122,11 @@ impl ToolData {
|
|||||||
Debug(kind) => match kind {
|
Debug(kind) => match kind {
|
||||||
DebugKind::Boost => vec![
|
DebugKind::Boost => vec![
|
||||||
CharacterAbility::Boost {
|
CharacterAbility::Boost {
|
||||||
duration: Duration::from_millis(100),
|
duration: Duration::from_millis(50),
|
||||||
only_up: false,
|
only_up: false,
|
||||||
},
|
},
|
||||||
CharacterAbility::Boost {
|
CharacterAbility::Boost {
|
||||||
duration: Duration::from_millis(100),
|
duration: Duration::from_millis(50),
|
||||||
only_up: true,
|
only_up: true,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
@ -29,9 +29,9 @@ impl CharacterBehavior for Data {
|
|||||||
// Still going
|
// Still going
|
||||||
if self.duration != Duration::default() {
|
if self.duration != Duration::default() {
|
||||||
if self.only_up {
|
if self.only_up {
|
||||||
update.vel.0.z = 30.0;
|
update.vel.0.z += 500.0 * data.dt.0;
|
||||||
} else {
|
} 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 {
|
update.character = CharacterState::Boost(Data {
|
||||||
duration: self
|
duration: self
|
||||||
|
Reference in New Issue
Block a user