Changed latest planned flight to desired game settings.

This commit is contained in:
Schneefl0cke 2021-05-18 20:54:56 +02:00 committed by GitHub
parent 5b61cfe922
commit dcbe12f1af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -931,7 +931,12 @@ class CoalitionMissionPlanner:
]
start_time = start_time_generator(
count=len(non_dca_packages), earliest=5, latest=90, margin=5
count=len(non_dca_packages),
earliest=5,
latest=int(
self.game.settings.desired_player_mission_duration.total_seconds() / 60
),
margin=5,
)
for package in self.ato.packages:
tot = TotEstimator(package).earliest_tot()