Reduce fuel for fast-forwarded player flights.

This only has an effect for aircraft for which we have fuel consumption
data, but that's fine.

Fixes https://github.com/dcs-liberation/dcs_liberation/issues/1681
This commit is contained in:
Dan Albert
2021-10-30 11:32:29 -07:00
parent b2cbf4b6f4
commit 1a3b8d1dd6
10 changed files with 127 additions and 50 deletions

View File

@@ -5,7 +5,7 @@ import math
import random
from collections import Iterable
from dataclasses import dataclass
from typing import Union, Any, TypeVar
from typing import TypeVar, Union
METERS_TO_FEET = 3.28084
FEET_TO_METERS = 1 / METERS_TO_FEET
@@ -20,6 +20,8 @@ KPH_TO_MS = 1 / MS_TO_KPH
INHG_TO_HPA = 33.86389
INHG_TO_MMHG = 25.400002776728
LBS_TO_KG = 0.453592
@dataclass(frozen=True, order=True)
class Distance: