From f879b6566458cdcf0a3481299626995df409017f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81ngel=20Montero=20Lamas?= Date: Wed, 11 Sep 2024 17:51:42 +0200 Subject: [PATCH] fixed invationCells spelling Fixed invationCells to invasionCells. Is invasion with s. --- modules/zones-generator.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/zones-generator.js b/modules/zones-generator.js index 992fa359..ca8e2b30 100644 --- a/modules/zones-generator.js +++ b/modules/zones-generator.js @@ -50,14 +50,14 @@ window.Zones = (function () { const startCell = ra(borderCells); if (startCell === undefined) return; - const invationCells = []; + const invasionCells = []; const queue = [startCell]; const maxCells = rand(5, 30); while (queue.length) { const cellId = P(0.4) ? queue.shift() : queue.pop(); - invationCells.push(cellId); - if (invationCells.length >= maxCells) break; + invasionCells.push(cellId); + if (invasionCells.length >= maxCells) break; cells.c[cellId].forEach(neibCellId => { if (usedCells[neibCellId]) return;