mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Actually generate the planned flights from the flight planner.
This commit is contained in:
@@ -169,6 +169,7 @@ class FlightPlanner:
|
||||
flight.scheduled_in = offset + i*random.randint(CAS_EVERY_X_MINUTES-5, CAS_EVERY_X_MINUTES+5)
|
||||
|
||||
location = random.choice(cas_location)
|
||||
flight.targets.append(cas_location)
|
||||
flight.points.append([location[0], location[1], 1000]) # TODO : Egress / Ingress points
|
||||
|
||||
self.cas_flights.append(flight)
|
||||
|
||||
@@ -34,6 +34,7 @@ class Flight:
|
||||
type = ""
|
||||
count = 0
|
||||
client_count = 0
|
||||
targets = []
|
||||
|
||||
# How long before this flight should take off
|
||||
scheduled_in = 0
|
||||
|
||||
Reference in New Issue
Block a user