Cull FlightType.TRANSPORT, FlightType.AEWC & FlightType.REFUELING surroundings

Don't create culling exclusion zones around FlightType.TRANSPORT, FlightType.AEWC & FlightType.REFUELING mission targets. (#30)
This commit is contained in:
MetalStormGhost 2022-12-03 23:01:35 +02:00 committed by Raffson
parent dfa33724e9
commit 4af7255917
No known key found for this signature in database
GPG Key ID: B0402B2C9B764D99

View File

@ -528,12 +528,20 @@ class Game:
packages = itertools.chain(self.blue.ato.packages, self.red.ato.packages) packages = itertools.chain(self.blue.ato.packages, self.red.ato.packages)
for package in 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, # BARCAPs will be planned at most locations on smaller theaters,
# rendering culling fairly useless. BARCAP packages don't really # rendering culling fairly useless. BARCAP packages don't really
# need the ground detail since they're defensive. SAMs nearby # need the ground detail since they're defensive. SAMs nearby
# are only interesting if there are enemies in the area, and if # 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. # 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 continue
zones.append(package.target.position) zones.append(package.target.position)