Mods
This commit is contained in:
parent
18aab48651
commit
4fc8eeb886
|
@ -16,7 +16,7 @@ class Ant:
|
||||||
self.created = now
|
self.created = now
|
||||||
self.updated = now
|
self.updated = now
|
||||||
self.name = ""
|
self.name = ""
|
||||||
self.status = "No update yet"
|
self.status = ""
|
||||||
self.method = ""
|
self.method = ""
|
||||||
self.triumph = 0
|
self.triumph = 0
|
||||||
self.hits = 0
|
self.hits = 0
|
||||||
|
|
|
@ -34,6 +34,9 @@ class Game:
|
||||||
status = ant.status
|
status = ant.status
|
||||||
color = None
|
color = None
|
||||||
|
|
||||||
|
if (not ant.status) and (not ant.method):
|
||||||
|
status = "No update yet"
|
||||||
|
|
||||||
if ant.method == "triumph":
|
if ant.method == "triumph":
|
||||||
total = f"({ant.triumph} total)"
|
total = f"({ant.triumph} total)"
|
||||||
status = f"{Config.triumph_icon} {Config.triumph_message} {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)
|
ants = sorted(Ants.ants, key=lambda ant: ant.updated)
|
||||||
|
|
||||||
for ant in ants:
|
for ant in ants:
|
||||||
if ant.status or ant.method:
|
Game.add_status(ant)
|
||||||
Game.add_status(ant)
|
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def start_loop() -> None:
|
def start_loop() -> None:
|
||||||
|
|
Loading…
Reference in New Issue