From 03c3fbeba66d8c35cf5090f60245fba97943e11c Mon Sep 17 00:00:00 2001 From: Auric Vente Date: Fri, 26 Jul 2024 20:25:27 -0600 Subject: [PATCH] Mods --- cromulant/game.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/cromulant/game.py b/cromulant/game.py index cd81ccf..7d92fc2 100644 --- a/cromulant/game.py +++ b/cromulant/game.py @@ -77,6 +77,7 @@ class Game: timer: QTimer | None = None playing_song: bool = False merge_charge: int = 0 + speed: str = "paused" @staticmethod def prepare() -> None: @@ -354,8 +355,10 @@ class Game: elif speed == "slow": minutes = Args.slow_minutes or Config.slow_minutes else: + Game.speed = "paused" return + Game.speed = speed Game.timer = QTimer() Game.timer.timeout.connect(Game.get_status) @@ -559,7 +562,10 @@ class Game: @staticmethod def slowdown() -> None: - Game.change_speed("slow") + if Game.speed == "slow": + Game.change_speed("paused") + else: + Game.change_speed("slow") @staticmethod def change_speed(speed: str) -> None: