mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Fix #1966 : Naming; replaced female_pilot_ratio by female_pilot_percentage
This commit is contained in:
@@ -20,7 +20,7 @@ class SquadronConfig:
|
||||
|
||||
name: Optional[str]
|
||||
nickname: Optional[str]
|
||||
female_pilot_ratio: Optional[int]
|
||||
female_pilot_percentage: Optional[int]
|
||||
|
||||
@property
|
||||
def auto_assignable(self) -> set[FlightType]:
|
||||
@@ -42,7 +42,7 @@ class SquadronConfig:
|
||||
data.get("aircraft", []),
|
||||
data.get("name", None),
|
||||
data.get("nickname", None),
|
||||
data.get("female_pilot_ratio", None),
|
||||
data.get("female_pilot_percentage", None),
|
||||
)
|
||||
|
||||
@staticmethod
|
||||
|
||||
@@ -77,8 +77,8 @@ class DefaultSquadronAssigner:
|
||||
overrides["name"] = config.name
|
||||
if config.nickname is not None:
|
||||
overrides["nickname"] = config.nickname
|
||||
if config.female_pilot_ratio is not None:
|
||||
overrides["female_pilot_ratio"] = config.female_pilot_ratio
|
||||
if config.female_pilot_percentage is not None:
|
||||
overrides["female_pilot_percentage"] = config.female_pilot_percentage
|
||||
|
||||
squadron_copy = dataclasses.replace(squadron_def, **overrides)
|
||||
return squadron_copy
|
||||
|
||||
@@ -50,7 +50,7 @@ class SquadronDefGenerator:
|
||||
livery=None,
|
||||
mission_types=tuple(tasks_for_aircraft(aircraft)),
|
||||
operating_bases=OperatingBases.default_for_aircraft(aircraft),
|
||||
female_pilot_ratio=6,
|
||||
female_pilot_percentage=6,
|
||||
pilot_pool=[],
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user