new mod anthropic, small map changes

This commit is contained in:
landgreen
2020-02-21 06:02:52 -08:00
parent b9422c8c74
commit 60bbd64c80
6 changed files with 133 additions and 68 deletions

View File

@@ -289,10 +289,12 @@ const powerUps = {
}
},
spawnStartingPowerUps(x, y) { //used for map specific power ups, mostly to give player a starting gun
if (b.modCount < 1) {
if (b.inventory.length === 0) {
powerUps.spawn(x, y, "gun", false);
} else if (b.modCount === 0) {
powerUps.spawn(x, y, "mod", false); //starting gun
} else if (b.inventory.length < 2) {
powerUps.spawn(x, y, "gun", false); //starting gun
powerUps.spawn(x, y, "gun", false);
} else {
powerUps.spawnRandomPowerUp(x, y);
powerUps.spawnRandomPowerUp(x, y);