From 8eb233bdbc04c7f07ce22df24476ed17385a61c1 Mon Sep 17 00:00:00 2001 From: AdamWhitehurst Date: Fri, 27 Mar 2020 10:43:18 -0700 Subject: [PATCH] Add timing window duration to triple strike --- common/src/states/triple_strike.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/src/states/triple_strike.rs b/common/src/states/triple_strike.rs index 5dcc0de307..0b9a566923 100644 --- a/common/src/states/triple_strike.rs +++ b/common/src/states/triple_strike.rs @@ -8,6 +8,7 @@ use vek::vec::Vec3; // In millis const STAGE_DURATION: u64 = 700; +const TIMING_WINDOW: u64 = 500; const INITIAL_ACCEL: f32 = 90.0; const BASE_SPEED: f32 = 25.0; @@ -68,7 +69,7 @@ impl CharacterBehavior for Data { if self.needs_timing { // Player must press at right time if data.inputs.primary.is_pressed() - && stage_time_active > Duration::from_millis(STAGE_DURATION * 0.7) + && stage_time_active > Duration::from_millis(TIMING_WINDOW) { should_transition = true; }