Remove old aircraft selection mode.

New mode seems to be working well.
This commit is contained in:
Dan Albert 2023-05-13 12:39:55 -07:00 committed by Raffson
parent e8e0452f32
commit b44249317a
No known key found for this signature in database
GPG Key ID: B0402B2C9B764D99
2 changed files with 10 additions and 12 deletions

View File

@ -130,7 +130,7 @@ Saves from 6.x are not compatible with 7.0.
* **[Engine]** Support for DCS 2.8.3.37556. * **[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. * **[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]** 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. * **[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]** Units on the front line are now hidden on MFDs.
* **[Mission Generation]** Preset radio channels will now be configured for both A-10C modules. * **[Mission Generation]** Preset radio channels will now be configured for both A-10C modules.

View File

@ -68,17 +68,15 @@ class AirWing:
) )
) )
if self.settings.prefer_squadrons_with_matching_primary_task: return sorted(
return sorted( ordered,
ordered, key=lambda s: (
key=lambda s: ( # This looks like the opposite of what we want because False sorts
# This looks like the opposite of what we want because False sorts # before True.
# before True. s.primary_task != task,
s.primary_task != task, s.location.distance_to(location),
s.location.distance_to(location), ),
), )
)
return ordered
def best_squadron_for( def best_squadron_for(
self, location: MissionTarget, task: FlightType, size: int, this_turn: bool self, location: MissionTarget, task: FlightType, size: int, this_turn: bool