Fix speed buff effect, update to new wind influences, tinker with skybox effect

This commit is contained in:
Till Affeldt 2020-04-18 11:14:09 +02:00
parent 52f06da30f
commit 497f31918a
5 changed files with 11 additions and 9 deletions

View File

@ -1,7 +1,7 @@
local EFFECT_NAME = "regional_weather:speed_buff"
local function handle_effect(player_data)
for playername, data in ipairs(player_data) do
for playername, data in pairs(player_data) do
local player = minetest.get_player_by_name(playername)
local product = 1
for weather, value in pairs(data) do

View File

@ -8,7 +8,7 @@ local conditions = {
local function generate_effects(params)
local override = {}
local wind = vector.new(params.wind_x, 0, params.wind_z)
local wind = climate_api.environment.get_wind()
override["climate_api:skybox"] = {
cloud_data = {

View File

@ -15,6 +15,14 @@ effects["climate_api:sound"] = {
gain = 1
}
effects["climate_api:skybox"] = {
sky_data = {
type = "plain",
base_color = {r = 125, g = 142, b = 145},
clouds = true
}
}
effects["climate_api:particles"] = {
min_pos = {x=-9, y=7, z=-9},
max_pos = {x= 9, y=7, z= 9},

View File

@ -10,9 +10,7 @@ local conditions = {
has_biome = {
"desert",
"sandstone_desert",
"cold_desert",
"grassland_dunes",
"coniferous_forest_dunes"
"cold_desert"
}
}

View File

@ -28,10 +28,6 @@ effects["climate_api:skybox"] = {
type = "plain",
base_color = {r=106, g=130, b=142},
clouds = true
},
cloud_data = {
size = 0.98,
speed = {x = 4, y = 0, z = -1.3}
}
}