mirror of
https://github.com/t-affeldt/climate_api.git
synced 2024-12-23 01:10:35 +01:00
Add pollen effect
This commit is contained in:
parent
6481cf409a
commit
e188015be1
1
init.lua
1
init.lua
@ -53,3 +53,4 @@ dofile(weather_mod.modpath.."/weathers/snow_heavy.lua")
|
|||||||
dofile(weather_mod.modpath.."/weathers/storm.lua")
|
dofile(weather_mod.modpath.."/weathers/storm.lua")
|
||||||
dofile(weather_mod.modpath.."/weathers/sandstorm.lua")
|
dofile(weather_mod.modpath.."/weathers/sandstorm.lua")
|
||||||
dofile(weather_mod.modpath.."/weathers/hail.lua")
|
dofile(weather_mod.modpath.."/weathers/hail.lua")
|
||||||
|
dofile(weather_mod.modpath.."/weathers/pollen.lua")
|
||||||
|
BIN
textures/weather_pollen.png
Normal file
BIN
textures/weather_pollen.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 47 KiB |
26
weathers/pollen.lua
Normal file
26
weathers/pollen.lua
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
local name = weather_mod.modname .. ":pollen"
|
||||||
|
|
||||||
|
local config = {}
|
||||||
|
|
||||||
|
config.environment = {}
|
||||||
|
|
||||||
|
config.particles = {
|
||||||
|
min_pos = {x=-12, y=-4, z=-12},
|
||||||
|
max_pos = {x= 12, y= 1, z= 12},
|
||||||
|
falling_speed=-0.1,
|
||||||
|
amount=2,
|
||||||
|
exptime=5,
|
||||||
|
size=1,
|
||||||
|
texture="weather_pollen.png"
|
||||||
|
}
|
||||||
|
|
||||||
|
config.conditions = {
|
||||||
|
min_height = weather_mod.settings.min_height,
|
||||||
|
max_height = weather_mod.settings.max_height,
|
||||||
|
min_heat = 40,
|
||||||
|
min_humidity = 30,
|
||||||
|
max_humidity = 40,
|
||||||
|
max_windspeed = 2
|
||||||
|
}
|
||||||
|
|
||||||
|
weather_mod.register_effect(name, config)
|
Loading…
Reference in New Issue
Block a user