Simplify flight startup time calls.

We can always estimate a startup time now. Remove the nullability from
the result, cleanup the callsites, and eliminate
TotEstimator.mission_start_time since it no longer does anything useful.
This commit is contained in:
Dan Albert
2022-09-02 23:00:08 -07:00
parent d8486568b7
commit 71f68b3103
9 changed files with 17 additions and 46 deletions

View File

@@ -5,7 +5,6 @@ from typing import TYPE_CHECKING
from dcs import Point
from game.ato.traveltime import TotEstimator
from .flightstate import FlightState
from ..starttype import StartType
@@ -36,8 +35,7 @@ class Uninitialized(FlightState):
@property
def description(self) -> str:
estimator = TotEstimator(self.flight.package)
delay = estimator.mission_start_time(self.flight)
delay = self.flight.flight_plan.startup_time()
if self.flight.start_type is StartType.COLD:
action = "Starting up"
elif self.flight.start_type is StartType.WARM: