Fix should draw condition

This commit is contained in:
schmelczerandras 2020-07-25 17:51:13 +02:00
parent 9aef368324
commit b6bef3c77d
9 changed files with 54 additions and 15 deletions

View file

@ -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,