1
0
mirror of https://github.com/t-affeldt/regional_weather.git synced 2025-07-19 17:00:30 +02:00

Add meta information, tweak effects, properly implement lightning

This commit is contained in:
Till Affeldt
2020-04-14 05:45:59 +02:00
parent 79fb0a234d
commit 263c21db1d
6 changed files with 63 additions and 19 deletions

View File

@ -1,4 +1,4 @@
local name = "regional_weather:wind"
local name = "regional_weather:ambient"
local CLOUD_SPEED = 1.8
@ -8,7 +8,7 @@ local function generate_effects(params)
local override = {}
override["climate_api:clouds"] = {
size = climate_api.utility.rangelim(params.humidity, 0.25, 0.9),
size = climate_api.utility.rangelim(params.humidity / 100, 0.25, 0.98),
speed = vector.multiply(params.wind, CLOUD_SPEED)
}