increased spore mod chance
This commit is contained in:
@@ -22,7 +22,7 @@ const b = {
|
|||||||
b.modNoAmmo = 0;
|
b.modNoAmmo = 0;
|
||||||
b.modBulletsLastLonger = 1;
|
b.modBulletsLastLonger = 1;
|
||||||
b.modIsImmortal = false;
|
b.modIsImmortal = false;
|
||||||
b.modSpores = false;
|
b.modSpores = 0;
|
||||||
for (let i = 0; i < b.mods.length; i++) {
|
for (let i = 0; i < b.mods.length; i++) {
|
||||||
b.mods[i].have = false;
|
b.mods[i].have = false;
|
||||||
}
|
}
|
||||||
@@ -105,10 +105,10 @@ const b = {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "Zoospore Vector",
|
name: "Zoospore Vector",
|
||||||
description: "when an enemy dies it has a 40% chance to release a <strong>spore</strong>",
|
description: "when an enemy dies it has a 50% chance to release a <strong>spore</strong>",
|
||||||
have: false,
|
have: false,
|
||||||
effect: () => {
|
effect: () => {
|
||||||
b.modSpores = true; //good late game
|
b.modSpores = 0.5; //good late game maybe?
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// () => {
|
// () => {
|
||||||
|
|||||||
@@ -917,7 +917,7 @@ const mobs = {
|
|||||||
this.alive = false;
|
this.alive = false;
|
||||||
if (this.dropPowerUp) {
|
if (this.dropPowerUp) {
|
||||||
powerUps.spawnRandomPowerUp(this.position.x, this.position.y, this.mass, radius);
|
powerUps.spawnRandomPowerUp(this.position.x, this.position.y, this.mass, radius);
|
||||||
if (b.modSpores && Math.random() < 0.4) b.spore(this) //spawn drone
|
if (Math.random() < b.modSpores) b.spore(this) //spawn drone
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user