Scrub unplannable missions

Prevents generating support flights like TARCAP when the a main
task is unplannable, e.g. an Air Assault.
This commit is contained in:
Raffson 2022-08-15 00:49:00 +02:00
parent 2ef84fd6a6
commit 4722a558b8
No known key found for this signature in database
GPG Key ID: B0402B2C9B764D99

View File

@ -157,7 +157,8 @@ class PackageFulfiller:
# This air wing can never plan this mission type because they do not
# have compatible aircraft or squadrons. Skip fulfillment so that we
# don't place the purchase request.
continue
missing_types.add(proposed_flight.task)
break
if proposed_flight.escort_type is not None:
# Escorts are planned after the primary elements of the package.
# If the package does not need escorts they may be pruned.