Update: CC - Before Render - Moorcow (qemp4een6t.js) 24 bytes modified

beta.r3js.org
-=yb4f310 2017-11-27 21:05:36 +01:00
parent c577f98599
commit 87ec3f89e0
1 changed files with 28 additions and 16 deletions

View File

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