added basic field blocking mod

This commit is contained in:
landgreen
2020-02-23 17:45:07 -08:00
parent 7f09bf700e
commit 9dc3bc43df
7 changed files with 79 additions and 27 deletions

View File

@@ -967,7 +967,7 @@ const mobs = {
if (this.dropPowerUp) {
powerUps.spawnRandomPowerUp(this.position.x, this.position.y, this.mass, radius);
mech.lastKillCycle = mech.cycle; //tracks the last time a kill was made, mostly used in game.checks()
if (Math.random() < b.modSpores) {
if (Math.random() < b.modSporesOnDeath) {
const len = Math.min(30, Math.floor(4 + this.mass * Math.random()))
for (let i = 0; i < len; i++) {
b.spore(this) //spawn drone