diff --git a/080g209iov.js b/080g209iov.js index 4ffcc33..b6bcec0 100644 --- a/080g209iov.js +++ b/080g209iov.js @@ -72,8 +72,14 @@ if (GameLib.Utils.UndefinedOrNull(this.initialized)) { //this.nextSpawnTime = this.getNextSpawnTime(); this.setLevelProperties = function() { + + this.prevLevel = this.level; + this.level = Math.floor(this.enemiesSpawned / 10) + 1; - this.spawnInterval -= 1 / (this.level); + + if (this.prevLevel !== this.level) { + this.spawnInterval -= 1 / (this.level); + } } this.spawnEnemy = function() {