From 4fc8eeb886bac55827634c9fa5d6cf49cd0d2aad Mon Sep 17 00:00:00 2001 From: Auric Vente Date: Sun, 21 Jul 2024 01:47:34 -0600 Subject: [PATCH] Mods --- cromulant/ants.py | 2 +- cromulant/game.py | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/cromulant/ants.py b/cromulant/ants.py index ddb1297..f6ef08e 100644 --- a/cromulant/ants.py +++ b/cromulant/ants.py @@ -16,7 +16,7 @@ class Ant: self.created = now self.updated = now self.name = "" - self.status = "No update yet" + self.status = "" self.method = "" self.triumph = 0 self.hits = 0 diff --git a/cromulant/game.py b/cromulant/game.py index 4a0d0af..4f86afa 100644 --- a/cromulant/game.py +++ b/cromulant/game.py @@ -34,6 +34,9 @@ class Game: status = ant.status color = None + if (not ant.status) and (not ant.method): + status = "No update yet" + if ant.method == "triumph": total = f"({ant.triumph} total)" status = f"{Config.triumph_icon} {Config.triumph_message} {total}" @@ -203,8 +206,7 @@ class Game: ants = sorted(Ants.ants, key=lambda ant: ant.updated) for ant in ants: - if ant.status or ant.method: - Game.add_status(ant) + Game.add_status(ant) @staticmethod def start_loop() -> None: