diff --git a/climatez.conf b/climatez.conf index a55086c..2d4af0f 100644 --- a/climatez.conf +++ b/climatez.conf @@ -22,6 +22,7 @@ storm_chance = 5 lightning = true lightning_chance = 300 thunder_sound = true +lightning_duration = 0.15 ##Dust Screen Effect for Sandstorms dust_effect = true #Rain Tweaks diff --git a/engine.lua b/engine.lua index 60fa3b9..f1d56a9 100644 --- a/engine.lua +++ b/engine.lua @@ -25,6 +25,7 @@ climatez.settings = { dust_effect = settings:get_bool("dust_effect"), rain_particles = tonumber(settings:get("rain_particles")) or 15, rain_falling_speed = tonumber(settings:get("rain_falling_speed")) or 15, + lightning_duration = tonumber(settings:get("lightning_duration")) or 0.15, } local timer = 0 -- A timer to create climates each x seconds an for lightning too. @@ -531,7 +532,7 @@ local climate = { if chance == 1 then if is_on_surface(_player_pos) then show_lightning(_player_name) - minetest.after(0.15, remove_lightning, _player_name) + minetest.after(climatez.settings.lightning_duration, remove_lightning, _player_name) end end end diff --git a/textures/climatez_lightning.png b/textures/climatez_lightning.png index f2b88fc..fee0a8a 100644 Binary files a/textures/climatez_lightning.png and b/textures/climatez_lightning.png differ