diff --git a/qemp4een6t.js b/qemp4een6t.js index e579b42..4a752d0 100644 --- a/qemp4een6t.js +++ b/qemp4een6t.js @@ -115,13 +115,13 @@ if (GameLib.Utils.UndefinedOrNull(this.initialized)) { } if (this.score > 10000) { - var dice = GameLib.Utils.GetRandomIntInclusive(1, 6); + var dice = GameLib.Utils.GetRandomIntInclusive(1, 10); /** * Max average spawn = 5.41 * @type {number} */ - dice += 5.41; + dice += 6.41; /** * 53 is one more than average score, in total - should be against your odds to win. @@ -192,23 +192,23 @@ if (GameLib.Utils.UndefinedOrNull(this.initialized)) { this.level = Math.floor(this.enemiesSpawned / 10) + 1; - this.enemySpawnInterval = Math.pow(this.level, 2) - 3 * this.level + 2; - // - // if (this.level === 1) { - // this.enemySpawnInterval = 4; - // } - // - // if (this.level === 2) { - // this.enemySpawnInterval = 3; - // } - // - // if (this.level === 3) { - // this.enemySpawnInterval = 2; - // } - // - // if (this.level > 3) { - // this.enemySpawnInterval = 1.5; - // } + //this.enemySpawnInterval = Math.pow(this.level, 2) - 3 * this.level + 2; + + if (this.level === 1) { + this.enemySpawnInterval = 4; + } + + if (this.level === 2) { + this.enemySpawnInterval = 3; + } + + if (this.level === 3) { + this.enemySpawnInterval = 2; + } + + if (this.level > 3) { + this.enemySpawnInterval = 1.5; + } console.log('level : ' + this.level + ', spawn interval : ' + this.enemySpawnInterval);