added new gun - swarm

This commit is contained in:
landgreen
2019-09-02 05:19:16 -07:00
parent 866cd8ad64
commit 3a99ec016d
3 changed files with 111 additions and 7 deletions

View File

@@ -62,7 +62,7 @@ const powerUps = {
effect() {
//only get ammo for guns player has
let target;
console.log(b.inventory.length)
// console.log(b.inventory.length)
if (b.inventory.length > 0) {
//add ammo to a gun in inventory
target = b.guns[b.inventory[Math.floor(Math.random() * (b.inventory.length))]];