spore mod balance
This commit is contained in:
@@ -105,10 +105,10 @@ const b = {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "Zoospore Vector",
|
name: "Zoospore Vector",
|
||||||
description: "when an enemy dies it has a 50% chance to release a <strong>spore</strong>",
|
description: "when an enemy dies it has a 20% chance to release <strong>spores</strong>",
|
||||||
have: false,
|
have: false,
|
||||||
effect: () => {
|
effect: () => {
|
||||||
b.modSpores = 0.5; //good late game maybe?
|
b.modSpores = 0.2; //good late game maybe?
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// () => {
|
// () => {
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
*****************************************************
|
*****************************************************
|
||||||
|
|
||||||
make power ups keep moving to player if the field is turned off
|
make power ups keep moving to player if the field is turned off
|
||||||
|
not sure how to do this without adding a constant check
|
||||||
|
|
||||||
levels spawn by having the map aspects randomly fly into place
|
levels spawn by having the map aspects randomly fly into place
|
||||||
|
|
||||||
|
|||||||
@@ -917,7 +917,11 @@ 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 (Math.random() < b.modSpores) b.spore(this) //spawn drone
|
if (Math.random() < b.modSpores) {
|
||||||
|
for (let i = 0, len = Math.floor(3 + this.mass * Math.random()); i < len; i++) {
|
||||||
|
b.spore(this) //spawn drone
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user