From 87ec3f89e0529b66a7de9300449b2fb10beec4f0 Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Mon, 27 Nov 2017 21:05:36 +0100 Subject: [PATCH] Update: CC - Before Render - Moorcow (qemp4een6t.js) 24 bytes modified --- qemp4een6t.js | 44 ++++++++++++++++++++++++++++---------------- 1 file changed, 28 insertions(+), 16 deletions(-) diff --git a/qemp4een6t.js b/qemp4een6t.js index 8b2b4ce..bea9437 100644 --- a/qemp4een6t.js +++ b/qemp4een6t.js @@ -89,23 +89,35 @@ if (GameLib.Utils.UndefinedOrNull(this.initialized)) { this.setNextKanisterSpawnScore = function () { - if (this.score > 15000) { + this.kanisterSpawnScore += 500; + + if (this.score > 500) { + this.kanisterSpawnScore = 1000; + } + + if (this.score > 1000) { + this.kanisterSpawnScore = 1500; + } + + if (this.score > 1500) { + this.kanisterSpawnScore = 2500; + } + + if (this.score > 2500) { + this.kanisterSpawnScore = 5000; + } + + if (this.score > 5000) { + this.kanisterSpawnScore = 7500; + } + + if (this.score > 7500) { + this.kanisterSpawnScore = 10000; + } + + if (this.score > 10000) { var dice = GameLib.Utils.GetRandomIntInclusive(1, 6); this.kanisterSpawnScore += dice * 1000; - } else if (this.score > 10000) { - this.kanisterSpawnScore = 15000; - } else if (this.score > 7500) { - this.kanisterSpawnScore = 10000; - } else if (this.score > 5000) { - this.kanisterSpawnScore = 7500; - } else if (this.score > 2500) { - this.kanisterSpawnScore = 5000; - } else if (this.score > 1500) { - this.kanisterSpawnScore = 2500; - } else if (this.score > 1000) { - this.kanisterSpawnScore = 1500; - } else { - this.kanisterSpawnScore = 500; } console.log('next kanister spawn score: ' + this.kanisterSpawnScore); @@ -663,7 +675,7 @@ if (this.scoreMesh.materials[0].opacity < 0) { this.scoreMesh.materials[0].updateInstance('opacity'); this.scene.meshes.map( - function(mesh) { + function (mesh) { if (mesh.instance.material.emissive) { mesh.instance.material.emissive.sub(this.toRed); }