Use more sensible patrol speeds for CAP, and fix is_helo (#1492)

* Use more sensible patrol speeds for CAP, and fix is_helo
This commit is contained in:
Magnus Wolffelt
2021-08-03 12:22:55 +02:00
parent adc7a41941
commit 570108e2a7
5 changed files with 86 additions and 21 deletions

View File

@@ -1,4 +1,5 @@
from __future__ import annotations
import logging
import random
from dataclasses import dataclass
@@ -57,7 +58,7 @@ class WaypointBuilder:
@property
def is_helo(self) -> bool:
return getattr(self.flight.unit_type, "helicopter", False)
return self.flight.unit_type.dcs_unit_type.helicopter
def takeoff(self, departure: ControlPoint) -> FlightWaypoint:
"""Create takeoff waypoint for the given arrival airfield or carrier.