mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Regroup settings per page in code
This commit is contained in:
parent
3012fb8661
commit
a9e784c0e3
@ -175,44 +175,6 @@ class Settings:
|
|||||||
default=None,
|
default=None,
|
||||||
)
|
)
|
||||||
|
|
||||||
# Campaign management
|
|
||||||
# General
|
|
||||||
squadron_random_chance: int = bounded_int_option(
|
|
||||||
"Percentage of randomly selected aircraft types (only for generated squadrons)",
|
|
||||||
page=CAMPAIGN_MANAGEMENT_PAGE,
|
|
||||||
section=GENERAL_SECTION,
|
|
||||||
default=50,
|
|
||||||
min=0,
|
|
||||||
max=100,
|
|
||||||
detail=(
|
|
||||||
"Aircraft type selection is governed by the campaign and the squadron definitions available to "
|
|
||||||
"Retribution. Squadrons are generated by Retribution if the faction does not have access to the campaign "
|
|
||||||
"designer's squadron/aircraft definitions. Use the above to increase/decrease aircraft variety by making "
|
|
||||||
"some selections random instead of picking aircraft types from a priority list."
|
|
||||||
),
|
|
||||||
)
|
|
||||||
restrict_weapons_by_date: bool = boolean_option(
|
|
||||||
"Restrict weapons by date (WIP)",
|
|
||||||
page=CAMPAIGN_MANAGEMENT_PAGE,
|
|
||||||
section=GENERAL_SECTION,
|
|
||||||
default=False,
|
|
||||||
detail=(
|
|
||||||
"Restricts weapon availability based on the campaign date. Data is "
|
|
||||||
"extremely incomplete so does not affect all weapons."
|
|
||||||
),
|
|
||||||
)
|
|
||||||
prefer_squadrons_with_matching_primary_task: bool = boolean_option(
|
|
||||||
"Prefer squadrons with matching primary task when planning missions",
|
|
||||||
page=CAMPAIGN_MANAGEMENT_PAGE,
|
|
||||||
section=GENERAL_SECTION,
|
|
||||||
default=False,
|
|
||||||
detail=(
|
|
||||||
"If checked, squadrons with a primary task matching the mission will be "
|
|
||||||
"preferred even if there is a closer squadron capable of the mission as a "
|
|
||||||
"secondary task. Expect longer flights, but squadrons will be more often "
|
|
||||||
"assigned to their primary task."
|
|
||||||
),
|
|
||||||
)
|
|
||||||
# CAMPAIGN DOCTRINE
|
# CAMPAIGN DOCTRINE
|
||||||
desired_barcap_mission_duration: timedelta = minutes_option(
|
desired_barcap_mission_duration: timedelta = minutes_option(
|
||||||
"Desired BARCAP on-station time",
|
"Desired BARCAP on-station time",
|
||||||
@ -501,6 +463,45 @@ class Settings:
|
|||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# Campaign management
|
||||||
|
# General
|
||||||
|
squadron_random_chance: int = bounded_int_option(
|
||||||
|
"Percentage of randomly selected aircraft types (only for generated squadrons)",
|
||||||
|
page=CAMPAIGN_MANAGEMENT_PAGE,
|
||||||
|
section=GENERAL_SECTION,
|
||||||
|
default=50,
|
||||||
|
min=0,
|
||||||
|
max=100,
|
||||||
|
detail=(
|
||||||
|
"Aircraft type selection is governed by the campaign and the squadron definitions available to "
|
||||||
|
"Retribution. Squadrons are generated by Retribution if the faction does not have access to the campaign "
|
||||||
|
"designer's squadron/aircraft definitions. Use the above to increase/decrease aircraft variety by making "
|
||||||
|
"some selections random instead of picking aircraft types from a priority list."
|
||||||
|
),
|
||||||
|
)
|
||||||
|
restrict_weapons_by_date: bool = boolean_option(
|
||||||
|
"Restrict weapons by date (WIP)",
|
||||||
|
page=CAMPAIGN_MANAGEMENT_PAGE,
|
||||||
|
section=GENERAL_SECTION,
|
||||||
|
default=False,
|
||||||
|
detail=(
|
||||||
|
"Restricts weapon availability based on the campaign date. Data is "
|
||||||
|
"extremely incomplete so does not affect all weapons."
|
||||||
|
),
|
||||||
|
)
|
||||||
|
prefer_squadrons_with_matching_primary_task: bool = boolean_option(
|
||||||
|
"Prefer squadrons with matching primary task when planning missions",
|
||||||
|
page=CAMPAIGN_MANAGEMENT_PAGE,
|
||||||
|
section=GENERAL_SECTION,
|
||||||
|
default=False,
|
||||||
|
detail=(
|
||||||
|
"If checked, squadrons with a primary task matching the mission will be "
|
||||||
|
"preferred even if there is a closer squadron capable of the mission as a "
|
||||||
|
"secondary task. Expect longer flights, but squadrons will be more often "
|
||||||
|
"assigned to their primary task."
|
||||||
|
),
|
||||||
|
)
|
||||||
|
|
||||||
# Pilots and Squadrons
|
# Pilots and Squadrons
|
||||||
ai_pilot_levelling: bool = boolean_option(
|
ai_pilot_levelling: bool = boolean_option(
|
||||||
"Allow AI pilot leveling",
|
"Allow AI pilot leveling",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user