added basic field blocking mod
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user