mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Now randomly shuffles the Pretense squadrons when generating a Pretense campaign.
This commit is contained in:
parent
5cfeee7b2a
commit
49ba40aaf3
@ -282,7 +282,9 @@ class PretenseAircraftGenerator:
|
|||||||
num_of_strike = 0
|
num_of_strike = 0
|
||||||
num_of_cap = 0
|
num_of_cap = 0
|
||||||
|
|
||||||
for squadron in cp.squadrons:
|
random_squadron_list = list(cp.squadrons)
|
||||||
|
random.shuffle(random_squadron_list)
|
||||||
|
for squadron in random_squadron_list:
|
||||||
# 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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user