Refactor and tweak sky light overwrite

This commit is contained in:
Wuzzy 2017-11-22 01:09:41 +01:00
parent b7880529a8
commit c434a41dec
5 changed files with 14 additions and 23 deletions

View file

@ -38,11 +38,11 @@ weather.get_rand_end_time = function(min_duration, max_duration)
end
end
weather.get_current_day_night_ratio = function()
weather.get_current_light_factor = function()
if weather.state == "none" then
return nil
else
return weather.reg_weathers[weather.state].day_night_ratio
return weather.reg_weathers[weather.state].light_factor
end
end