Update: CC - Before Render - Moorcow (qemp4een6t.js) 24 bytes modified
parent
c577f98599
commit
87ec3f89e0
|
@ -89,23 +89,35 @@ if (GameLib.Utils.UndefinedOrNull(this.initialized)) {
|
||||||
|
|
||||||
this.setNextKanisterSpawnScore = function () {
|
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);
|
var dice = GameLib.Utils.GetRandomIntInclusive(1, 6);
|
||||||
this.kanisterSpawnScore += dice * 1000;
|
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);
|
console.log('next kanister spawn score: ' + this.kanisterSpawnScore);
|
||||||
|
|
Loading…
Reference in New Issue