Fixed jumble layout logic
This commit is contained in:
parent
b40c54a88d
commit
46fbdc1b3c
|
@ -250,14 +250,14 @@ end
|
|||
function pickARoom(matrix)
|
||||
-- Chose a random layout
|
||||
if random(2) == 1 then
|
||||
matrix = matrix[random(#matrix)]
|
||||
return matrix[random(#matrix)]
|
||||
else
|
||||
matrix = createJumbleLayout(matrix)
|
||||
return createJumbleLayout(matrix)
|
||||
end
|
||||
end
|
||||
|
||||
function module.add_walls_to_room(room)
|
||||
if random(4) ~= 1 then
|
||||
if random(3) ~= 1 then
|
||||
return false
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue