forked from mtcontrib/regional_weather
Enable snow setting, update presets to renamed lighting condition
This commit is contained in:
@ -3,16 +3,19 @@ local name = "regional_weather:ambient"
|
||||
local CLOUD_SPEED = 1.8
|
||||
|
||||
local conditions = {
|
||||
min_light = 15
|
||||
min_daylight = 15
|
||||
}
|
||||
|
||||
local function generate_effects(params)
|
||||
local override = {}
|
||||
local wind = vector.new(params.wind_x, 0, params.wind_z)
|
||||
|
||||
--[[override["climate_api:clouds"] = {
|
||||
size = climate_api.utility.rangelim(params.humidity / 100, 0.25, 0.98),
|
||||
speed = vector.multiply(params.wind, CLOUD_SPEED)
|
||||
}]]
|
||||
override["climate_api:skybox"] = {
|
||||
cloud_data = {
|
||||
size = climate_api.utility.rangelim(params.humidity / 100, 0.25, 0.98),
|
||||
speed = vector.multiply(wind, CLOUD_SPEED)
|
||||
}
|
||||
}
|
||||
|
||||
local movement = params.player:get_player_velocity()
|
||||
local movement_direction
|
||||
@ -21,7 +24,7 @@ local function generate_effects(params)
|
||||
else
|
||||
movement_direction = vector.normalize(movement)
|
||||
end
|
||||
local vector_product = vector.dot(movement_direction, params.wind)
|
||||
local vector_product = vector.dot(movement_direction, wind)
|
||||
local movement_penalty = climate_api.utility.sigmoid(vector_product, 1.6, 0.2, 0.8) + 0.2
|
||||
override["regional_weather:speed_buff"] = movement_penalty
|
||||
return override
|
||||
|
@ -1,7 +1,7 @@
|
||||
local name = "regional_weather:deep_cave"
|
||||
|
||||
local conditions = {
|
||||
max_light = 14,
|
||||
max_daylight = 14,
|
||||
max_height = -100
|
||||
}
|
||||
|
||||
|
@ -6,7 +6,7 @@ local conditions = {
|
||||
max_heat = 45,
|
||||
min_humidity = 65,
|
||||
min_windspeed = 2.5,
|
||||
min_light = 15
|
||||
min_daylight = 15
|
||||
}
|
||||
|
||||
local effects = {}
|
||||
|
@ -7,7 +7,7 @@ local conditions = {
|
||||
min_humidity = 30,
|
||||
max_humidity = 40,
|
||||
max_windspeed = 2,
|
||||
min_light = 15
|
||||
min_daylight = 15
|
||||
}
|
||||
|
||||
local effects = {}
|
||||
|
@ -6,7 +6,7 @@ local conditions = {
|
||||
min_heat = 30,
|
||||
min_humidity = 50,
|
||||
max_humidity = 65,
|
||||
min_light = 15
|
||||
min_daylight = 15
|
||||
}
|
||||
|
||||
local effects = {}
|
||||
|
@ -5,7 +5,7 @@ local conditions = {
|
||||
max_height = regional_weather.settings.max_height,
|
||||
min_heat = 40,
|
||||
min_humidity = 65,
|
||||
min_light = 15
|
||||
min_daylight = 15
|
||||
}
|
||||
|
||||
local effects = {}
|
||||
|
@ -6,7 +6,14 @@ local conditions = {
|
||||
min_heat = 50,
|
||||
max_humidity = 25,
|
||||
min_windspeed = 6,
|
||||
min_light = 15
|
||||
min_daylight = 15,
|
||||
has_biome = {
|
||||
"desert",
|
||||
"sandstone_desert",
|
||||
"cold_desert",
|
||||
"grassland_dunes",
|
||||
"coniferous_forest_dunes"
|
||||
}
|
||||
}
|
||||
|
||||
local effects = {}
|
||||
|
@ -6,7 +6,7 @@ local conditions = {
|
||||
max_heat = 40,
|
||||
min_humidity = 50,
|
||||
max_humidity = 65,
|
||||
min_light = 15
|
||||
min_daylight = 15
|
||||
}
|
||||
|
||||
local effects = {}
|
||||
|
@ -5,7 +5,7 @@ local conditions = {
|
||||
max_height = regional_weather.settings.max_height,
|
||||
max_heat = 30,
|
||||
min_humidity = 65,
|
||||
min_light = 15
|
||||
min_daylight = 15
|
||||
}
|
||||
|
||||
local effects = {}
|
||||
|
@ -4,7 +4,7 @@ local conditions = {
|
||||
min_height = regional_weather.settings.min_height,
|
||||
max_height = regional_weather.settings.max_height,
|
||||
min_windspeed = 3,
|
||||
min_light = 15
|
||||
min_daylight = 15
|
||||
}
|
||||
|
||||
local effects = {}
|
||||
|
Reference in New Issue
Block a user