summaryrefslogtreecommitdiff
path: root/models/chunk.js
diff options
context:
space:
mode:
Diffstat (limited to 'models/chunk.js')
-rw-r--r--models/chunk.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/models/chunk.js b/models/chunk.js
index 49059b1..d558fea 100644
--- a/models/chunk.js
+++ b/models/chunk.js
@@ -267,10 +267,10 @@ Chunk.prototype.generateAllTiles = function() {
if ((this.pos.x == 0 && this.pos.y == 0) || Math.random() < 1 / (10 * 10)) {
this.addRestZone();
}
- if (Math.random() < 1 / 36) {
+ if (Math.random() < 1 / 10) {
this.addTeleporter();
}
- for (let i = 0; i < 30; i++) {
+ if (Math.random() < 1 / 36) {
var tempPos = new Pos(
Math.floor(Math.random() * chunkSize),
Math.floor(Math.random() * chunkSize)