From 4e40517ac62137ce668d9798bc7cf5ed59a6d926 Mon Sep 17 00:00:00 2001 From: LocalH <41028672+LocalH@users.noreply.github.com> Date: Wed, 31 May 2023 20:10:42 -0400 Subject: [PATCH] Beats-based SP drain only (#401) * beats-based sp drain * whoops, managed to pick up an extra space --- Assets/Script/PlayMode/AbstractTrack.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Assets/Script/PlayMode/AbstractTrack.cs b/Assets/Script/PlayMode/AbstractTrack.cs index 7ba250b95..abde38c38 100644 --- a/Assets/Script/PlayMode/AbstractTrack.cs +++ b/Assets/Script/PlayMode/AbstractTrack.cs @@ -412,7 +412,8 @@ private void UpdateStarpower() { GameManager.AudioManager.PlaySoundEffect(SfxSample.StarPowerRelease); SetReverb(false); } else { - starpowerCharge -= Time.deltaTime / 25f * Play.speed; + //starpowerCharge -= Time.deltaTime / 25f * Play.speed; //original logic + starpowerCharge -= (float)((Time.deltaTime * Play.Instance.CurrentBeatsPerSecond) * 0.03125); // calculates based on 32 beats for a full bar } if (!trackAnims.spShakeAscended) { trackAnims.StarpowerTrackAnim();