This commit is contained in:
Auric Vente 2024-07-21 01:47:34 -06:00
parent 18aab48651
commit 4fc8eeb886
2 changed files with 5 additions and 3 deletions

View File

@ -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

View File

@ -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: