diff --git a/zo950m57cc.js b/zo950m57cc.js index 6c7d6a0..8e8b40e 100644 --- a/zo950m57cc.js +++ b/zo950m57cc.js @@ -240,18 +240,18 @@ var enemyType = GameLib.Utils.GetRandomIntInclusive(1, 5); var meshType = GameLib.Utils.GetRandomIntInclusive(1, 5); - + if (kanister) { meshType = 6; - } else { + } - var mesh = this.getNextMesh(meshType); - - if (!mesh) { - console.warn('re-attempt to spawn'); - return this.spawnEnemy(false); - } + var mesh = this.getNextMesh(meshType); + if (!mesh) { + return; + } + + if (!kanister) { this.enemiesSpawned++; this.setLevelProperties(); } @@ -783,7 +783,7 @@ if (material.name.indexOf('Trees') === -1) { - mesh.burnLife -= data.delta * 2; + mesh.burnLife -= data.delta; if (mesh.burnLife < 0) { mesh.burnLife = 0; this.burn(mesh); @@ -796,7 +796,7 @@ ); if (mesh.burnLife <= 0) { - mesh.explodeLife -= data.delta * 2; + mesh.explodeLife -= data.delta; if (mesh.explodeLife < 0) { mesh.explodeLife = 0; } @@ -882,7 +882,7 @@ if (this.enemySpawnTime > this.enemySpawnInterval && this.running) { this.enemySpawnTime = 0; - this.spawnEnemy(); + this.spawnEnemy(false); } this.enemies = this.enemies.reduce(