Fix should draw condition
This commit is contained in:
parent
9aef368324
commit
b6bef3c77d
9 changed files with 54 additions and 15 deletions
|
|
@ -17,7 +17,7 @@ export const createDungeon = (objects: ObjectContainer) => {
|
|||
new Tunnel(previousEnd, currentEnd, previousRadius, currentToRadius)
|
||||
);
|
||||
|
||||
if (deltaHeight > 0) {
|
||||
if (deltaHeight > 0 && Math.random() > 0.5) {
|
||||
objects.addObject(
|
||||
new CircleLight(
|
||||
currentEnd,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue