This commit is contained in:
Auric Vente 2024-07-26 20:25:27 -06:00
parent 81565c22d2
commit 03c3fbeba6
1 changed files with 7 additions and 1 deletions

View File

@ -77,6 +77,7 @@ class Game:
timer: QTimer | None = None timer: QTimer | None = None
playing_song: bool = False playing_song: bool = False
merge_charge: int = 0 merge_charge: int = 0
speed: str = "paused"
@staticmethod @staticmethod
def prepare() -> None: def prepare() -> None:
@ -354,8 +355,10 @@ class Game:
elif speed == "slow": elif speed == "slow":
minutes = Args.slow_minutes or Config.slow_minutes minutes = Args.slow_minutes or Config.slow_minutes
else: else:
Game.speed = "paused"
return return
Game.speed = speed
Game.timer = QTimer() Game.timer = QTimer()
Game.timer.timeout.connect(Game.get_status) Game.timer.timeout.connect(Game.get_status)
@ -559,6 +562,9 @@ class Game:
@staticmethod @staticmethod
def slowdown() -> None: def slowdown() -> None:
if Game.speed == "slow":
Game.change_speed("paused")
else:
Game.change_speed("slow") Game.change_speed("slow")
@staticmethod @staticmethod