mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Tweak weather
Hopefully this prevents the generation of thunderstorms in clear skies
This commit is contained in:
parent
5896bdccc1
commit
5dfeb60a13
@ -160,11 +160,12 @@ class Weather:
|
|||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def random_cloud_base() -> int:
|
def random_cloud_base() -> int:
|
||||||
return random.randint(2000, 3000)
|
return random.randint(1000, 5000)
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def random_cloud_thickness() -> int:
|
def random_cloud_thickness() -> int:
|
||||||
return random.randint(100, 400)
|
# values lower than 400m can generate clear skies in some cases
|
||||||
|
return random.randint(400, 2000)
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def random_pressure(average_pressure: float) -> Pressure:
|
def random_pressure(average_pressure: float) -> Pressure:
|
||||||
@ -234,7 +235,7 @@ class Cloudy(Weather):
|
|||||||
return None
|
return None
|
||||||
|
|
||||||
def generate_wind(self) -> WindConditions:
|
def generate_wind(self) -> WindConditions:
|
||||||
return self.random_wind(1, 4)
|
return self.random_wind(1, 5)
|
||||||
|
|
||||||
|
|
||||||
class Raining(Weather):
|
class Raining(Weather):
|
||||||
@ -275,7 +276,7 @@ class Thunderstorm(Weather):
|
|||||||
)
|
)
|
||||||
|
|
||||||
def generate_wind(self) -> WindConditions:
|
def generate_wind(self) -> WindConditions:
|
||||||
return self.random_wind(1, 8)
|
return self.random_wind(2, 8)
|
||||||
|
|
||||||
|
|
||||||
@dataclass
|
@dataclass
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user