1
0
mirror of https://github.com/t-affeldt/regional_weather.git synced 2025-07-17 16:00:35 +02:00

Update file structure

This commit is contained in:
Till Affeldt
2020-04-16 10:04:34 +02:00
parent bac1618a3c
commit 6d3e33bf9f
6 changed files with 14 additions and 9 deletions

View File

@ -1,5 +1,7 @@
if not minetest.get_modpath("lightning") then return end
local EFFECT_NAME = "regional_weather:lightning"
local LIGHTNING_CHANCE = 20
lightning.auto = false
@ -42,5 +44,5 @@ local function handle_effect(player_data)
end
end
climate_api.register_effect("regional_weather:lightning", handle_effect, "tick")
climate_api.set_effect_cycle("regional_weather:lightning", climate_api.LONG_CYCLE)
climate_api.register_effect(EFFECT_NAME, handle_effect, "tick")
climate_api.set_effect_cycle(EFFECT_NAME, climate_api.LONG_CYCLE)