Fix desync wrt off-map flights

This commit is contained in:
Raffson 2024-01-28 19:20:22 +01:00
parent ca98183e94
commit 0edcd31367
No known key found for this signature in database
GPG Key ID: B0402B2C9B764D99
2 changed files with 11 additions and 2 deletions

View File

@ -277,8 +277,9 @@ class FlightPlan(ABC, Generic[LayoutT]):
else:
return timedelta(minutes=8)
@staticmethod
def estimate_takeoff_time() -> timedelta:
def estimate_takeoff_time(self) -> timedelta:
if self.flight.departure.is_offmap:
return timedelta()
return timedelta(seconds=30)
@property

View File

@ -646,6 +646,10 @@ class ControlPoint(MissionTarget, SidcDescribable, ABC):
"""
return False
@property
def is_offmap(self) -> bool:
return False
@property
def moveable(self) -> bool:
"""
@ -1578,6 +1582,10 @@ class OffMapSpawn(ControlPoint):
def status(self) -> ControlPointStatus:
return ControlPointStatus.Functional
@property
def is_offmap(self) -> bool:
return True
class Fob(ControlPoint, RadioFrequencyContainer, CTLD):
def __init__(