Applied minor requested changes

This commit is contained in:
Khopa
2021-08-06 23:55:58 +02:00
parent ce1c416b20
commit 9ea1edf9db
4 changed files with 4 additions and 6 deletions

View File

@@ -405,7 +405,7 @@ class ControlPoint(MissionTarget, ABC):
"""
Returns true if cp has a free helipad
"""
return False in [h.occupied for h in self.helipads]
return not all(h.occupied for h in self.helipads)
def get_free_helipad(self) -> Optional[Helipad]:
"""
@@ -1187,8 +1187,6 @@ class Fob(ControlPoint):
return len(self.helipads)
def can_operate(self, aircraft: AircraftType) -> bool:
print(aircraft)
print(aircraft.helicopter)
if aircraft.helicopter:
return True
else: