From acc03188697a56605e1108b0f502b5f0838cd7f3 Mon Sep 17 00:00:00 2001 From: ubq323 Date: Sat, 17 Jun 2023 19:27:32 +0000 Subject: change teleporter spawn rate back to 1 per 36 chunks --- models/chunk.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/models/chunk.js b/models/chunk.js index 42396ea..0ed0ee7 100644 --- a/models/chunk.js +++ b/models/chunk.js @@ -266,9 +266,9 @@ Chunk.prototype.generateAllTiles = function() { if ((this.pos.x == 0 && this.pos.y == 0) || Math.random() < 1 / (10 * 10)) { this.addRestZone(); } - if (Math.random() < 1 / 1) - for (let i = 0; i < 10; i++) - this.addTeleporter(); + if (Math.random() < 1 / 36) { + this.addTeleporter(); + } chunkUtils.persistAllChunks(); } -- cgit v1.2.3