Modified Planned Flights in airfield command to show startup type

This commit is contained in:
tmz 2024-08-05 09:53:10 +02:00 committed by Raffson
parent d29f5a26a1
commit 5b4ed979b1
2 changed files with 6 additions and 1 deletions

View File

@ -285,7 +285,9 @@ class Flight(
return self.__str__()
def __str__(self) -> str:
string = f"[{self.flight_type}] {self.count} x {self.unit_type}"
string = (
f"[{self.flight_type}] {self.count} x {self.unit_type} - {self.start_type}"
)
if self.custom_name:
return f"{self.custom_name} - {string}"
return string

View File

@ -13,3 +13,6 @@ class StartType(Enum):
WARM = "Warm"
RUNWAY = "Runway"
IN_FLIGHT = "In Flight"
def __str__(self) -> str:
return f"{self.value}"