From a75ea3b1613117a56a4c4b594979deabd09e7514 Mon Sep 17 00:00:00 2001 From: flifloo Date: Tue, 30 Mar 2021 09:47:48 +0200 Subject: [PATCH] Balancing the odds --- sources/js/Game.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources/js/Game.js b/sources/js/Game.js index f1b7b03..7fafbe7 100644 --- a/sources/js/Game.js +++ b/sources/js/Game.js @@ -237,7 +237,7 @@ export class Game { lifeGenerator() { if (!this.world.find(v => v === tiles.LIFE) && !this.world.find(v => v === tiles.ORANGE)) { if (this.lifeCooldown <= 0) { - if (this.lives < 3 && Math.random() < 0.15) { + if (this.lives < 3 && Math.random() < 0.05) { let pos = this.randCoords(); this.world[pos[0]][pos[1]].type = tiles.LIFE;