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 bc27dc4621
commit bc92a2ade3

View File

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