forked from mtcontrib/regional_weather
Fix speed buff effect, update to new wind influences, tinker with skybox effect
This commit is contained in:
parent
52f06da30f
commit
497f31918a
@ -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
|
||||
|
@ -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 = {
|
||||
|
@ -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},
|
||||
|
@ -10,9 +10,7 @@ local conditions = {
|
||||
has_biome = {
|
||||
"desert",
|
||||
"sandstone_desert",
|
||||
"cold_desert",
|
||||
"grassland_dunes",
|
||||
"coniferous_forest_dunes"
|
||||
"cold_desert"
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user