mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Remove old aircraft selection mode.
New mode seems to be working well.
This commit is contained in:
parent
e8e0452f32
commit
b44249317a
@ -130,7 +130,7 @@ Saves from 6.x are not compatible with 7.0.
|
||||
* **[Engine]** Support for DCS 2.8.3.37556.
|
||||
* **[Engine]** Saved games are now a zip file of save assets for easier bug reporting. The new extension is .liberation.zip. Drag and drop that file into bug reports.
|
||||
* **[Campaign]** Added options to limit squadron sizes and to begin all squadrons at maximum strength. Maximum squadron size is defined during air wing configuration with default values provided by the campaign.
|
||||
* **[Campaign AI]** Added an option to instruct the campaign AI to prefer fulfilling missions with squadrons which have a matching primary task. Previously distance from target held a stronger influence than task preference. Primary tasks for squadrons are set by campaign designers but are user-configurable.
|
||||
* **[Campaign AI]** The campaign AI now prefers fulfilling missions with squadrons which have a matching primary task. Previously distance from target held a stronger influence than task preference. Primary tasks for squadrons are set by campaign designers but are user-configurable.
|
||||
* **[Flight Planning]** Package TOT and composition can be modified after advancing time in Liberation.
|
||||
* **[Mission Generation]** Units on the front line are now hidden on MFDs.
|
||||
* **[Mission Generation]** Preset radio channels will now be configured for both A-10C modules.
|
||||
|
||||
@ -68,17 +68,15 @@ class AirWing:
|
||||
)
|
||||
)
|
||||
|
||||
if self.settings.prefer_squadrons_with_matching_primary_task:
|
||||
return sorted(
|
||||
ordered,
|
||||
key=lambda s: (
|
||||
# This looks like the opposite of what we want because False sorts
|
||||
# before True.
|
||||
s.primary_task != task,
|
||||
s.location.distance_to(location),
|
||||
),
|
||||
)
|
||||
return ordered
|
||||
return sorted(
|
||||
ordered,
|
||||
key=lambda s: (
|
||||
# This looks like the opposite of what we want because False sorts
|
||||
# before True.
|
||||
s.primary_task != task,
|
||||
s.location.distance_to(location),
|
||||
),
|
||||
)
|
||||
|
||||
def best_squadron_for(
|
||||
self, location: MissionTarget, task: FlightType, size: int, this_turn: bool
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user