From 4af7255917bc1f66657eb8cfb64c0e2d8807984f Mon Sep 17 00:00:00 2001 From: MetalStormGhost <89945461+MetalStormGhost@users.noreply.github.com> Date: Sat, 3 Dec 2022 23:01:35 +0200 Subject: [PATCH] Cull FlightType.TRANSPORT, FlightType.AEWC & FlightType.REFUELING surroundings Don't create culling exclusion zones around FlightType.TRANSPORT, FlightType.AEWC & FlightType.REFUELING mission targets. (#30) --- game/game.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/game/game.py b/game/game.py index f9044fca..7b615413 100644 --- a/game/game.py +++ b/game/game.py @@ -528,12 +528,20 @@ class Game: packages = itertools.chain(self.blue.ato.packages, self.red.ato.packages) for package in packages: - if package.primary_task is FlightType.BARCAP: + if package.primary_task in [ + FlightType.BARCAP, + FlightType.TRANSPORT, + FlightType.AEWC, + FlightType.REFUELING, + ]: # BARCAPs will be planned at most locations on smaller theaters, # rendering culling fairly useless. BARCAP packages don't really # need the ground detail since they're defensive. SAMs nearby # are only interesting if there are enemies in the area, and if # there are they won't be culled because of the enemy's mission. + + # Don't create culling exclusion zones around FlightType.TRANSPORT, + # FlightType.AEWC & FlightType.REFUELING mission targets. continue zones.append(package.target.position)