increased spore mod chance

This commit is contained in:
landgreen
2019-10-30 06:05:14 -07:00
parent f7674f4ffd
commit 03eca6c8b7
2 changed files with 4 additions and 4 deletions

View File

@@ -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?
} }
}, },
// () => { // () => {

View File

@@ -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
} }
}, },