tweak humidity to consider biome even more

This commit is contained in:
Till Affeldt 2023-02-24 09:50:51 +01:00
parent d1c70e904b
commit 0dd5c74d42
2 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ function environment.get_humidity(pos)
local base = climate_mod.settings.humidity
local biome = minetest.get_humidity(pos)
local random = climate_mod.state:get_float("humidity_random");
return base + (((biome + 40) / 2) * random)
return base + ((biome * 0.7 + 40 * 0.3) * random)
end
function environment.get_wind(pos)

View File

@ -10,7 +10,7 @@ climate_api.register_influence("humidity",
climate_api.environment.get_humidity
)
climate_api.register_influence("base_humidity",
climate_api.register_influence("biome_humidity",
minetest.get_humidity
)