random dynamic weather

This commit is contained in:
Vasyl Horbachenko 2018-06-27 18:25:22 +03:00
parent dbebb6022f
commit 2222c6a14c

View File

@ -78,7 +78,10 @@ class SettingsGenerator:
self.mission.weather.heavy_rain()
self.mission.weather.enable_fog = False
elif weather_type == 3:
pass
self.mission.weather.clouds_iprecptns = 1
while self.mission.weather.clouds_iprecptns != 0:
self.mission.weather.random(self.mission.start_time, self.conflict.theater.terrain)
if self.mission.weather.clouds_density > 0:
self.mission.weather.clouds_base = max(self.mission.weather.clouds_base, CLOUDS_BASE_MIN)