Mods
This commit is contained in:
parent
dce647cced
commit
db78a855d4
|
@ -17,8 +17,8 @@ class Ant:
|
||||||
self.updated = now
|
self.updated = now
|
||||||
self.name = ""
|
self.name = ""
|
||||||
self.status = ""
|
self.status = ""
|
||||||
self.hits = 0
|
|
||||||
self.triumph = 0
|
self.triumph = 0
|
||||||
|
self.hits = 0
|
||||||
self.color: tuple[int, int, int]
|
self.color: tuple[int, int, int]
|
||||||
|
|
||||||
def to_dict(self) -> dict[str, Any]:
|
def to_dict(self) -> dict[str, Any]:
|
||||||
|
|
|
@ -183,13 +183,13 @@ class Game:
|
||||||
|
|
||||||
hits = Ants.most_hits()
|
hits = Ants.most_hits()
|
||||||
|
|
||||||
if hits:
|
|
||||||
text.append(f"Most{nb}Hits:{nb}{hits.name}")
|
|
||||||
|
|
||||||
triumph = Ants.most_triumph()
|
triumph = Ants.most_triumph()
|
||||||
|
|
||||||
if triumph:
|
if triumph:
|
||||||
text.append(f"Most{nb}Triumph:{nb}{triumph.name}")
|
text.append(f"Triumph:{nb}{triumph.name}")
|
||||||
|
|
||||||
|
if hits:
|
||||||
|
text.append(f"Hits:{nb}{hits.name}")
|
||||||
|
|
||||||
Window.info.setText(" | ".join(text))
|
Window.info.setText(" | ".join(text))
|
||||||
Window.info.adjustSize()
|
Window.info.adjustSize()
|
||||||
|
|
Loading…
Reference in New Issue