mirror of
https://github.com/t-affeldt/regional_weather.git
synced 2025-01-08 01:00:30 +01:00
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 EFFECT_NAME = "regional_weather:speed_buff"
|
||||||
|
|
||||||
local function handle_effect(player_data)
|
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 player = minetest.get_player_by_name(playername)
|
||||||
local product = 1
|
local product = 1
|
||||||
for weather, value in pairs(data) do
|
for weather, value in pairs(data) do
|
||||||
|
@ -8,7 +8,7 @@ local conditions = {
|
|||||||
|
|
||||||
local function generate_effects(params)
|
local function generate_effects(params)
|
||||||
local override = {}
|
local override = {}
|
||||||
local wind = vector.new(params.wind_x, 0, params.wind_z)
|
local wind = climate_api.environment.get_wind()
|
||||||
|
|
||||||
override["climate_api:skybox"] = {
|
override["climate_api:skybox"] = {
|
||||||
cloud_data = {
|
cloud_data = {
|
||||||
|
@ -15,6 +15,14 @@ effects["climate_api:sound"] = {
|
|||||||
gain = 1
|
gain = 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
effects["climate_api:skybox"] = {
|
||||||
|
sky_data = {
|
||||||
|
type = "plain",
|
||||||
|
base_color = {r = 125, g = 142, b = 145},
|
||||||
|
clouds = true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
effects["climate_api:particles"] = {
|
effects["climate_api:particles"] = {
|
||||||
min_pos = {x=-9, y=7, z=-9},
|
min_pos = {x=-9, y=7, z=-9},
|
||||||
max_pos = {x= 9, y=7, z= 9},
|
max_pos = {x= 9, y=7, z= 9},
|
||||||
|
@ -10,9 +10,7 @@ local conditions = {
|
|||||||
has_biome = {
|
has_biome = {
|
||||||
"desert",
|
"desert",
|
||||||
"sandstone_desert",
|
"sandstone_desert",
|
||||||
"cold_desert",
|
"cold_desert"
|
||||||
"grassland_dunes",
|
|
||||||
"coniferous_forest_dunes"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -28,10 +28,6 @@ effects["climate_api:skybox"] = {
|
|||||||
type = "plain",
|
type = "plain",
|
||||||
base_color = {r=106, g=130, b=142},
|
base_color = {r=106, g=130, b=142},
|
||||||
clouds = true
|
clouds = true
|
||||||
},
|
|
||||||
cloud_data = {
|
|
||||||
size = 0.98,
|
|
||||||
speed = {x = 4, y = 0, z = -1.3}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user