mirror of
https://github.com/dcs-liberation/dcs_liberation.git
synced 2025-11-10 14:22:26 +00:00
Make theater refuelling flight plan on-station time configurable based on the desired mission duration (#3375)
This PR - Addresses #1511 by setting the tanker on-station time to the desired mission duration + 30 minutes - Elaborate on what the desired mission duration setting does in the Settings UI.
This commit is contained in:
@@ -17,7 +17,13 @@ class TheaterRefuelingFlightPlan(RefuelingFlightPlan):
|
||||
|
||||
@property
|
||||
def patrol_duration(self) -> timedelta:
|
||||
return timedelta(hours=1)
|
||||
# Add 30 minutes to desired_player_mission_duration as TOTs for flights
|
||||
# can sit up to this time. This extension means the tanker remains on
|
||||
# station for the flights' return.
|
||||
return (
|
||||
self.flight.coalition.game.settings.desired_player_mission_duration
|
||||
+ timedelta(minutes=30)
|
||||
)
|
||||
|
||||
|
||||
class Builder(IBuilder[TheaterRefuelingFlightPlan, PatrollingLayout]):
|
||||
|
||||
@@ -467,6 +467,12 @@ class Settings:
|
||||
default=timedelta(minutes=60),
|
||||
min=30,
|
||||
max=150,
|
||||
detail=(
|
||||
"Period of time after the start of a turn where "
|
||||
"there is coverage by one or more CAP flight(s), "
|
||||
"refuelling flights not tied to a specific package are on station, "
|
||||
"and other flights have their TOTs."
|
||||
),
|
||||
)
|
||||
|
||||
# Performance
|
||||
|
||||
Reference in New Issue
Block a user