This commit is contained in:
Auric Vente
2024-07-24 03:01:56 -06:00
parent 969d8f1a0f
commit 8f89763a46
3 changed files with 65 additions and 45 deletions

View File

@@ -65,20 +65,25 @@ class Ant:
return tooltip
def get_status(self) -> str:
from .game import Method
if (not self.status) and (not self.method):
return "No update yet"
status = self.status
if self.method == "triumph":
if self.method == Method.triumph:
total = f"({self.triumph} total)"
status = f"{Config.triumph_icon} {Config.triumph_message} {total}"
elif self.method == "hit":
elif self.method == Method.hit:
total = f"({self.hits} total)"
status = f"{Config.hit_icon} {Config.hit_message} {total}"
elif self.method == "thinking":
elif self.method == Method.think:
status = f"Thinking about {status}"
elif self.method == "travel":
elif self.method == Method.travel:
status = f"Traveling to {status}"
return status