From df60c994d1d7369a6555b521ea74099f8c91eeec Mon Sep 17 00:00:00 2001 From: Dregu Date: Mon, 9 Oct 2023 02:17:36 +0300 Subject: [PATCH] no water in camp please --- examples/randomizer2.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/randomizer2.lua b/examples/randomizer2.lua index 562a4bb26..7cb2d872a 100644 --- a/examples/randomizer2.lua +++ b/examples/randomizer2.lua @@ -3546,6 +3546,7 @@ function start_leak(type) end function can_leak(type) + if state.screen ~= SCREEN.LEVEL then return false end if not players[1] then return false end if state.theme == THEME.COSMIC_OCEAN then return false end if state.theme == THEME.ICE_CAVES then @@ -3573,7 +3574,7 @@ function can_leak(type) end function wait_for_leak() - if prng:random() < options.leak_chance / 100 and not water_level then + if state.screen == SCREEN.LEVEL and prng:random() < options.leak_chance / 100 and not water_level then set_interval(function() shuffle(leak_liquids) for _,v in pairs(leak_liquids) do