Add fuel quantity selector to EditFlight's payload tab

Resolves #99
This commit is contained in:
Raffson
2023-04-10 17:10:28 +02:00
parent efd2c40cfc
commit 5b7ff8bdd6
6 changed files with 88 additions and 21 deletions

View File

@@ -200,6 +200,10 @@ class AircraftType(UnitType[Type[FlyingType]]):
def helicopter(self) -> bool:
return self.dcs_unit_type.helicopter
@property
def max_fuel(self) -> float:
return self.dcs_unit_type.fuel_max
@cached_property
def max_speed(self) -> Speed:
return kph(self.dcs_unit_type.max_speed)