From 4722a558b8c38038d43253a75eb4b196a041a1ab Mon Sep 17 00:00:00 2001 From: Raffson Date: Mon, 15 Aug 2022 00:49:00 +0200 Subject: [PATCH] Scrub unplannable missions Prevents generating support flights like TARCAP when the a main task is unplannable, e.g. an Air Assault. --- game/commander/packagefulfiller.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/game/commander/packagefulfiller.py b/game/commander/packagefulfiller.py index c09a0293..fc95ce0f 100644 --- a/game/commander/packagefulfiller.py +++ b/game/commander/packagefulfiller.py @@ -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.