mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Initial squadrons implementation.
Doesn't actually do anything yet, but squadrons are created for each aircraft type and pilots will be created as needed to fill flights. https://github.com/dcs-liberation/dcs_liberation/issues/276
This commit is contained in:
@@ -562,10 +562,17 @@ class QLiberationMap(QGraphicsView, LiberationMap):
|
||||
origin = self.game.theater.enemy_points()[0]
|
||||
|
||||
package = Package(target)
|
||||
for squadron_list in self.game.air_wing_for(player=True).squadrons.values():
|
||||
squadron = squadron_list[0]
|
||||
break
|
||||
else:
|
||||
logging.error("Player has no squadrons?")
|
||||
return
|
||||
|
||||
flight = Flight(
|
||||
package,
|
||||
self.game.player_country if player else self.game.enemy_country,
|
||||
F_16C_50,
|
||||
self.game.country_for(player),
|
||||
squadron,
|
||||
2,
|
||||
task,
|
||||
start_type="Warm",
|
||||
|
||||
Reference in New Issue
Block a user