Fix front line CAP patrol end time.

This commit is contained in:
Dan Albert 2020-11-02 01:34:35 -08:00
parent 465399f803
commit 85491dca20

View File

@ -410,13 +410,7 @@ class FrontLineCapFlightPlan(PatrollingFlightPlan):
def depart_time_for_waypoint( def depart_time_for_waypoint(
self, waypoint: FlightWaypoint) -> Optional[timedelta]: self, waypoint: FlightWaypoint) -> Optional[timedelta]:
if waypoint == self.patrol_end: if waypoint == self.patrol_end:
timing = PackageWaypointTiming.for_package(self.package) return self.patrol_end_time
if timing is None:
# If the player for some reason planned a TAR
patrol_duration = self.patrol_duration
else:
patrol_duration = timing.egress
return self.package.time_over_target + patrol_duration
return super().depart_time_for_waypoint(waypoint) return super().depart_time_for_waypoint(waypoint)
@property @property