mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Deleted __str__ from StartType to limit impact of change.
This commit is contained in:
parent
5b4ed979b1
commit
9e2c5c06b9
@ -285,9 +285,7 @@ class Flight(
|
|||||||
return self.__str__()
|
return self.__str__()
|
||||||
|
|
||||||
def __str__(self) -> str:
|
def __str__(self) -> str:
|
||||||
string = (
|
string = f"[{self.flight_type}] {self.count} x {self.unit_type} - {self.start_type.value}"
|
||||||
f"[{self.flight_type}] {self.count} x {self.unit_type} - {self.start_type}"
|
|
||||||
)
|
|
||||||
if self.custom_name:
|
if self.custom_name:
|
||||||
return f"{self.custom_name} - {string}"
|
return f"{self.custom_name} - {string}"
|
||||||
return string
|
return string
|
||||||
|
|||||||
@ -13,6 +13,3 @@ class StartType(Enum):
|
|||||||
WARM = "Warm"
|
WARM = "Warm"
|
||||||
RUNWAY = "Runway"
|
RUNWAY = "Runway"
|
||||||
IN_FLIGHT = "In Flight"
|
IN_FLIGHT = "In Flight"
|
||||||
|
|
||||||
def __str__(self) -> str:
|
|
||||||
return f"{self.value}"
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user