1
0
mirror of https://gitlab.com/rautars/weather_pack.git synced 2025-07-16 13:50:21 +02:00

added biome check based on noice parameters

This commit is contained in:
Arturas Norkus
2017-05-28 09:49:37 +03:00
parent d51e0e28b0
commit b2f32023f5
6 changed files with 114 additions and 6 deletions

View File

@ -68,6 +68,11 @@ local calculate_thunder_strike_delay = function()
end
thunder.render = function(dtime, player)
if happy_weather.is_player_in_weather_area(player:get_player_name(),
"heavy_rain") == false then
return
end
if thunder.next_strike <= os.time() then
lightning.strike()
calculate_thunder_strike_delay()