From 22652cfa37320946dafc7aeaa136ae233270c312 Mon Sep 17 00:00:00 2001 From: timokoesters Date: Thu, 19 Mar 2020 17:01:58 +0100 Subject: [PATCH] Restore old boost stick behavior --- common/src/comp/inventory/item.rs | 4 ++-- common/src/states/boost.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/common/src/comp/inventory/item.rs b/common/src/comp/inventory/item.rs index b65a8d2adb..0b5eb75450 100644 --- a/common/src/comp/inventory/item.rs +++ b/common/src/comp/inventory/item.rs @@ -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, }, ], diff --git a/common/src/states/boost.rs b/common/src/states/boost.rs index 7acfd6bc80..7b060ed9cf 100644 --- a/common/src/states/boost.rs +++ b/common/src/states/boost.rs @@ -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