From 8fcca3afd11a72045e3f72e2089e615bdce3ad03 Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Sat, 18 Nov 2017 09:32:38 +0100 Subject: [PATCH] Update: CC - Before Render - Moorcow (080g209iov.js) 85 bytes modified --- 080g209iov.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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() {