mirror of
https://github.com/t-affeldt/regional_weather.git
synced 2025-09-22 11:26:49 -04:00
Delete puddles and snow faster, don't mark puddles as water by default
This commit is contained in:
parent
1079f9a762
commit
5e2cba0ae8
4 changed files with 12 additions and 15 deletions
|
@ -144,13 +144,11 @@ climate_api.register_abm({
|
|||
climate_api.register_abm({
|
||||
label = "remove rain puddles",
|
||||
nodenames = { "group:weather_puddle" },
|
||||
interval = 10,
|
||||
chance = 3,
|
||||
interval = 25,
|
||||
chance = 30,
|
||||
catch_up = true,
|
||||
|
||||
action = function (pos, node, env)
|
||||
if env.humidity < 55 then
|
||||
minetest.remove_node(pos)
|
||||
end
|
||||
minetest.remove_node(pos)
|
||||
end
|
||||
})
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
local BLOCK_PREFIX = "regional_weather:snow_cover_"
|
||||
local CHECK_DISTANCE = 3
|
||||
local CHECK_DISTANCE = 5
|
||||
local MAX_AMOUNT = 20
|
||||
|
||||
local S = regional_weather.i18n
|
||||
|
@ -114,7 +114,7 @@ if regional_weather.settings.snow_griefing then
|
|||
},
|
||||
neighbors = { "air" },
|
||||
interval = 25,
|
||||
chance = 30,
|
||||
chance = 120,
|
||||
catch_up = false,
|
||||
|
||||
conditions = {
|
||||
|
@ -157,17 +157,15 @@ if regional_weather.settings.snow_griefing then
|
|||
})
|
||||
end
|
||||
|
||||
local chance = 50
|
||||
if regional_weather.settings.snow_griefing then chance = 30 end
|
||||
climate_api.register_abm({
|
||||
label = "melt snow covers",
|
||||
nodenames = { "group:weather_snow_cover" },
|
||||
interval = 15,
|
||||
chance = 4,
|
||||
interval = 25,
|
||||
chance = chance,
|
||||
catch_up = true,
|
||||
|
||||
conditions = {
|
||||
min_heat = 30
|
||||
},
|
||||
|
||||
action = function (pos, node, env)
|
||||
local value = minetest.get_item_group(node.name, "weather_snow_cover")
|
||||
if value == nil then value = 0 end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue