From 86615e493be6376e652779dfbd16a4b53df1734e Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Sun, 26 Nov 2017 23:49:02 +0100 Subject: [PATCH] Update: CC - Before Render - Moorcow (zo950m57cc.js) 53 bytes modified --- zo950m57cc.js | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) 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(