mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Applied minor requested changes
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user