mirror of
https://github.com/t-affeldt/climate_api.git
synced 2024-12-22 17:00:36 +01:00
tweak humidity to consider biome even more
This commit is contained in:
parent
d1c70e904b
commit
0dd5c74d42
@ -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)
|
||||
|
@ -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
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user