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); }