mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
parent
e50d49d7ba
commit
e341599a11
@ -16,6 +16,7 @@
|
|||||||
* **[Mission Planning]** Allow attack helicopters to escort other helicopters
|
* **[Mission Planning]** Allow attack helicopters to escort other helicopters
|
||||||
* **[UI]** Allow changing waypoint names in FlightEdit's waypoints tab
|
* **[UI]** Allow changing waypoint names in FlightEdit's waypoints tab
|
||||||
* **[Waypoints]** Allow user to add navigation waypoints where possible without degrading to a custom flight-plan
|
* **[Waypoints]** Allow user to add navigation waypoints where possible without degrading to a custom flight-plan
|
||||||
|
* **[Campaign Management]** Improve squadron retreat logic to account for parking-slot sizes
|
||||||
|
|
||||||
## Fixes
|
## Fixes
|
||||||
* **[Mission Generation]** Anti-ship strikes should use "group attack" in their attack-task
|
* **[Mission Generation]** Anti-ship strikes should use "group attack" in their attack-task
|
||||||
|
|||||||
@ -842,6 +842,12 @@ class ControlPoint(MissionTarget, SidcDescribable, ABC):
|
|||||||
if airbase.can_operate(squadron.aircraft):
|
if airbase.can_operate(squadron.aircraft):
|
||||||
overfull.append(airbase)
|
overfull.append(airbase)
|
||||||
continue
|
continue
|
||||||
|
elif isinstance(airbase, Airfield):
|
||||||
|
dcs_unit_type = squadron.aircraft.dcs_unit_type
|
||||||
|
free_slots = airbase.airport.free_parking_slots(dcs_unit_type)
|
||||||
|
if len(free_slots) < squadron.owned_aircraft or len(free_slots) == 0:
|
||||||
|
overfull.append(airbase)
|
||||||
|
continue
|
||||||
|
|
||||||
if squadron.operates_from(airbase):
|
if squadron.operates_from(airbase):
|
||||||
# Has room, is a preferred base type for this squadron, and is the
|
# Has room, is a preferred base type for this squadron, and is the
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user