diff --git a/.luacheckrc b/.luacheckrc index 560847f..6958bbc 100644 --- a/.luacheckrc +++ b/.luacheckrc @@ -1,5 +1,5 @@ unused_args = false -allow_defined_top = true +allow_defined_top = false globals = { "minetest", diff --git a/engine.lua b/engine.lua index 42ec380..16d1557 100644 --- a/engine.lua +++ b/engine.lua @@ -28,7 +28,7 @@ local timer = 0 -- A timer to create climates each x seconds an for lightning to --Helper Functions -function remove_table_by_key(tab, key) +local function remove_table_by_key(tab, key) local i = 0 local keys, values = {},{} for k, v in pairs(tab) do @@ -135,20 +135,20 @@ register_downfall("rain", { min_pos = {x = -15, y = 10, z = -15}, max_pos = {x = 15, y = 10, z = 15}, falling_speed = 10, - amount = 20, + amount = 8, exptime = 1, - size = 1, - texture = "climatez_rain.png", + size = 2, + texture = {"climatez_rain.png", "climatez_rain2.png", "climatez_rain3.png"}, }) register_downfall("storm", { min_pos = {x = -15, y = 20, z = -15}, max_pos = {x = 15, y = 20, z = 15}, falling_speed = 20, - amount = 30, + amount = 20, exptime = 1, - size = 1, - texture = "climatez_rain.png", + size = 1.5, + texture = {"climatez_rain.png", "climatez_rain2.png", "climatez_rain3.png"}, }) register_downfall("snow", { diff --git a/textures/climatez_rain.png b/textures/climatez_rain.png index 495afa4..f392697 100644 Binary files a/textures/climatez_rain.png and b/textures/climatez_rain.png differ diff --git a/textures/climatez_rain2.png b/textures/climatez_rain2.png new file mode 100644 index 0000000..2bf1f82 Binary files /dev/null and b/textures/climatez_rain2.png differ diff --git a/textures/climatez_rain3.png b/textures/climatez_rain3.png new file mode 100644 index 0000000..dcba1d2 Binary files /dev/null and b/textures/climatez_rain3.png differ