mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Player Startup Time customization (#377)
This commit is contained in:
parent
cc6fbc0379
commit
9e9ea09f70
@ -27,6 +27,7 @@
|
||||
* **[Plugins]** Support for Carsten's Arty Spotter script
|
||||
* **[Modding]** Added support for SK-60 mod (v1.2.1)
|
||||
* **[Mission Generation]** Introducing the Armed Recon flight plan, i.e. CAS against any Theater Ground Object
|
||||
* **[Doctrine]** Ability to customize the startup time allocated to the player
|
||||
|
||||
## Fixes
|
||||
* **[UI/UX]** A-10A flights can be edited again
|
||||
|
||||
@ -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)
|
||||
|
||||
@ -308,6 +308,20 @@ class Settings:
|
||||
default=2,
|
||||
detail="Creates a randomized altitude offset for airplanes.",
|
||||
)
|
||||
|
||||
player_startup_time: int = bounded_int_option(
|
||||
"Player startup time",
|
||||
page=CAMPAIGN_DOCTRINE_PAGE,
|
||||
section=GENERAL_SECTION,
|
||||
default=10,
|
||||
min=0,
|
||||
max=100,
|
||||
detail=(
|
||||
"The startup time allocated to player flights (default : 10 minutes, AI is 2 minutes). "
|
||||
"Takes effect after the next turn. "
|
||||
),
|
||||
)
|
||||
|
||||
# Doctrine Distances Section
|
||||
airbase_threat_range: int = bounded_int_option(
|
||||
"Airbase threat range (NM)",
|
||||
@ -415,6 +429,7 @@ class Settings:
|
||||
"range is defined in the helicopter's yaml specification."
|
||||
),
|
||||
)
|
||||
|
||||
# Pilots and Squadrons
|
||||
ai_pilot_levelling: bool = boolean_option(
|
||||
"Allow AI pilot leveling",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user