Account for free heli slots & ground spawns for airfields

This commit is contained in:
Raffson 2024-07-20 02:50:06 +02:00
parent 6194ec7301
commit 7d898f8b48
No known key found for this signature in database
GPG Key ID: B0402B2C9B764D99

View File

@ -215,7 +215,11 @@ class SquadronDestinationComboBox(QComboBox):
f"Consider moving these squadrons to different airfield "
"to avoid possible air-starts.",
)
return len(ap.free_parking_slots(dcs_unit_type))
return (
len(ap.free_parking_slots(dcs_unit_type))
+ free_helicopter_slots
+ free_ground_spawns
)
else:
parking_type = ParkingType().from_aircraft(
next(AircraftType.for_dcs_type(dcs_unit_type)),