mirror of
https://github.com/Yonokid/PyTaiko.git
synced 2026-02-04 11:40:13 +01:00
minor bug fixes
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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"""
|
||||||
|
|||||||
Reference in New Issue
Block a user