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

Add additional constraints

This commit is contained in:
Till Affeldt
2023-02-24 09:51:14 +01:00
parent d04daec67d
commit 222f708760
15 changed files with 96 additions and 57 deletions

View File

@ -21,7 +21,7 @@ local function generate_effects(params)
local override = {}
local cloud_density = climate_api.utility.rangelim(params.humidity / 100, 0.15, 0.65)
local cloud_thickness = climate_api.utility.rangelim(params.base_humidity * 0.2, 1, 18)
local cloud_thickness = climate_api.utility.rangelim(params.biome_humidity * 0.2, 1, 18)
local cloud_height = calc_cloud_height(params.heat, params.humidity, params.dewpoint)
local wind = climate_api.environment.get_wind({ x = 0, y = cloud_height, z = 0 })