foam damage mod

This commit is contained in:
landgreen
2020-08-16 06:44:47 -07:00
parent e157ab76db
commit cc8c101776
5 changed files with 86 additions and 67 deletions

View File

@@ -496,8 +496,6 @@ const powerUps = {
if (Math.random() < mod.bayesian) powerUps.spawn(x, y, "gun")
}
}
},
chooseRandomPowerUp(x, y) { //100% chance to drop a random power up //used in spawn.debris
if (Math.random() < 0.5) {
@@ -526,6 +524,8 @@ const powerUps = {
} else {
powerUps.spawn(x, y, "ammo", false);
powerUps.spawn(x, y, "ammo", false);
powerUps.spawn(x, y, "ammo", false);
powerUps.spawn(x, y, "ammo", false);
}
} else {
powerUps.spawnRandomPowerUp(x, y);