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