spawn random level boss

This commit is contained in:
landgreen
2020-02-03 19:04:24 -08:00
parent ba2eb2d1ff
commit 63e9e879a5
3 changed files with 43 additions and 108 deletions

View File

@@ -962,7 +962,7 @@ const mobs = {
death() {
this.onDeath(this); //custom death effects
this.removeConsBB();
this.alive = false;
this.alive = false; //triggers mob removal in mob[i].replace(i)
if (this.dropPowerUp) {
powerUps.spawnRandomPowerUp(this.position.x, this.position.y, this.mass, radius);
if (Math.random() < b.modSpores) {