Don't spawn flights for the other squadron in generate_pretense_aircraft().

This commit is contained in:
MetalStormGhost 2023-09-17 18:55:52 +03:00
parent 77060031da
commit a6104968e8

View File

@ -240,6 +240,8 @@ class PretenseAircraftGenerator:
# Intentionally don't spawn anything at OffMapSpawns in Pretense
if isinstance(squadron.location, OffMapSpawn):
continue
if cp.coalition != squadron.coalition:
continue
squadron.owned_aircraft += PRETENSE_AI_AIRCRAFT_PER_FLIGHT
squadron.untasked_aircraft += PRETENSE_AI_AIRCRAFT_PER_FLIGHT