diff options
author | ubq323 <ubq323@ubq323.website> | 2023-06-17 19:27:32 +0000 |
---|---|---|
committer | ubq323 <ubq323@ubq323.website> | 2023-06-17 19:27:32 +0000 |
commit | acc03188697a56605e1108b0f502b5f0838cd7f3 (patch) | |
tree | 7a981e9f33af866c34d98fdba2201b8d253f7be0 | |
parent | 0035bb9b917cdec0517d4d89102024b05f90db39 (diff) |
change teleporter spawn rate back to 1 per 36 chunks
-rw-r--r-- | models/chunk.js | 6 |
1 files 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(); } |