Skip to content

Commit

Permalink
no water in camp please
Browse files Browse the repository at this point in the history
  • Loading branch information
Dregu committed Oct 8, 2023
1 parent dc189b8 commit df60c99
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/randomizer2.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit df60c99

Please sign in to comment.