mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Don't allow helicopters at non-FARP FOBs.
Fixes https://github.com/dcs-liberation/dcs_liberation/issues/2378.
This commit is contained in:
@@ -1433,7 +1433,10 @@ class Fob(ControlPoint):
|
||||
return len(self.helipads)
|
||||
|
||||
def can_operate(self, aircraft: AircraftType) -> bool:
|
||||
return aircraft.helicopter
|
||||
# FOBs and FARPs are the same class, distinguished only by non-FARP FOBs having
|
||||
# zero parking.
|
||||
# https://github.com/dcs-liberation/dcs_liberation/issues/2378
|
||||
return aircraft.helicopter and self.total_aircraft_parking > 0
|
||||
|
||||
@property
|
||||
def heading(self) -> Heading:
|
||||
|
||||
Reference in New Issue
Block a user