From f15e700c3ae3e08bea6ec02c0ab11e5dfd07f306 Mon Sep 17 00:00:00 2001 From: Anthony Samms Date: Wed, 12 Nov 2025 10:32:03 -0500 Subject: [PATCH] minor bug fixes --- libs/utils.py | 3 +-- scenes/game.py | 9 +++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/libs/utils.py b/libs/utils.py index 8f96f2c..d746635 100644 --- a/libs/utils.py +++ b/libs/utils.py @@ -5,11 +5,10 @@ import sys import logging import time import json -import cffi from libs.global_data import Config, global_data from functools import lru_cache from pathlib import Path -from typing import Any, Optional +from typing import Optional import pyray as ray import tomlkit diff --git a/scenes/game.py b/scenes/game.py index d1e8960..cb7d043 100644 --- a/scenes/game.py +++ b/scenes/game.py @@ -560,12 +560,21 @@ class Player: self.is_drumroll = True elif note.type == 7 or note.type == 9: self.is_balloon = True + elif note.type == 8: + self.other_notes.popleft() + self.is_drumroll = False + self.is_balloon = False + self.curr_balloon_count = 0 + self.curr_drumroll_count = 0 + return tail = self.other_notes[1] if tail.hit_ms <= current_ms: self.other_notes.popleft() self.other_notes.popleft() self.is_drumroll = False self.is_balloon = False + self.curr_balloon_count = 0 + self.curr_drumroll_count = 0 def draw_note_manager(self, current_ms: float): """Manages the draw_notes and removes if necessary"""