minor bug fixes

This commit is contained in:
Anthony Samms
2025-11-12 10:32:03 -05:00
parent 839001274a
commit f15e700c3a
2 changed files with 10 additions and 2 deletions

View File

@@ -5,11 +5,10 @@ import sys
import logging import logging
import time import time
import json import json
import cffi
from libs.global_data import Config, global_data from libs.global_data import Config, global_data
from functools import lru_cache from functools import lru_cache
from pathlib import Path from pathlib import Path
from typing import Any, Optional from typing import Optional
import pyray as ray import pyray as ray
import tomlkit import tomlkit

View File

@@ -560,12 +560,21 @@ class Player:
self.is_drumroll = True self.is_drumroll = True
elif note.type == 7 or note.type == 9: elif note.type == 7 or note.type == 9:
self.is_balloon = True 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] tail = self.other_notes[1]
if tail.hit_ms <= current_ms: if tail.hit_ms <= current_ms:
self.other_notes.popleft() self.other_notes.popleft()
self.other_notes.popleft() self.other_notes.popleft()
self.is_drumroll = False self.is_drumroll = False
self.is_balloon = False self.is_balloon = False
self.curr_balloon_count = 0
self.curr_drumroll_count = 0
def draw_note_manager(self, current_ms: float): def draw_note_manager(self, current_ms: float):
"""Manages the draw_notes and removes if necessary""" """Manages the draw_notes and removes if necessary"""