mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Improved implementation.
This commit is contained in:
parent
29c0a8d054
commit
07b93167f0
@ -23,7 +23,6 @@ from typing import (
|
|||||||
Tuple,
|
Tuple,
|
||||||
)
|
)
|
||||||
|
|
||||||
from dcs import helicopters
|
|
||||||
from dcs.mapping import Point
|
from dcs.mapping import Point
|
||||||
from dcs.ships import (
|
from dcs.ships import (
|
||||||
CVN_74_John_C__Stennis,
|
CVN_74_John_C__Stennis,
|
||||||
@ -1139,7 +1138,7 @@ class Fob(ControlPoint):
|
|||||||
return len(self.helipads)
|
return len(self.helipads)
|
||||||
|
|
||||||
def can_operate(self, aircraft: FlyingType) -> bool:
|
def can_operate(self, aircraft: FlyingType) -> bool:
|
||||||
if aircraft in helicopters.helicopter_map.values():
|
if aircraft.helicopter:
|
||||||
return True
|
return True
|
||||||
else:
|
else:
|
||||||
return False
|
return False
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user