Player Startup Time customization (#377)

This commit is contained in:
tmz42
2024-07-27 18:08:40 +02:00
committed by GitHub
parent cc6fbc0379
commit 9e9ea09f70
3 changed files with 19 additions and 1 deletions

View File

@@ -255,7 +255,9 @@ class FlightPlan(ABC, Generic[LayoutT]):
def estimate_startup(self) -> timedelta:
if self.flight.start_type is StartType.COLD:
if self.flight.client_count:
return timedelta(minutes=10)
return timedelta(
minutes=self.flight.coalition.game.settings.player_startup_time
)
else:
# The AI doesn't seem to have a real startup procedure.
return timedelta(minutes=2)