improved rain efficiency

master
root 2021-08-21 11:34:09 +02:00
parent bbcfdf85da
commit 36f5cb737c
5 changed files with 8 additions and 8 deletions

View File

@ -1,5 +1,5 @@
unused_args = false
allow_defined_top = true
allow_defined_top = false
globals = {
"minetest",

View File

@ -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", {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.4 KiB

After

Width:  |  Height:  |  Size: 5.6 KiB

BIN
textures/climatez_rain2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

BIN
textures/climatez_rain3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.9 KiB