lovered chance for rain appearance

This commit is contained in:
Arturas Norkus 2017-05-24 16:12:50 +03:00
parent 17a67b846e
commit 34d9615c60
2 changed files with 3 additions and 3 deletions

View File

@ -26,7 +26,7 @@ local SKYCOLOR_LAYER = "happy_weather_light_rain_sky"
light_rain.is_starting = function(dtime, position)
if light_rain.last_check + light_rain.check_interval < os.time() then
light_rain.last_check = os.time()
if math.random() < 0.2 then
if math.random() < 0.15 then
return true
end
end
@ -42,7 +42,7 @@ end
light_rain.is_ending = function(dtime)
if light_rain.last_check + light_rain.check_interval < os.time() then
light_rain.last_check = os.time()
if math.random() < 0.4 then
if math.random() < 0.5 then
return true
end
end

View File

@ -44,7 +44,7 @@ end
rain.is_ending = function(dtime)
if rain.last_check + rain.check_interval < os.time() then
rain.last_check = os.time()
if math.random() < 0.3 then
if math.random() < 0.6 then
happy_weather.request_to_start("light_rain")
return true
end