ferro frag done (for now)

This commit is contained in:
landgreen
2019-11-15 05:19:38 -08:00
parent 389f2770a2
commit d9def3fb07
4 changed files with 37 additions and 101 deletions

View File

@@ -107,9 +107,13 @@ const powerUps = {
effect() {
//find what guns I don't have
let options = [];
if (b.activeGun === null) { //choose the first gun to be one that is good for the early game
options = [0, 1, 2, 3, 4, 5, 6, 8, 9, 12]
if (b.activeGun === null) {
//choose the first gun to be one that is good for the early game
for (let i = 0; i < b.guns.length; ++i) {
if (!b.guns[i].have && b.guns[i].isStarterGun) options.push(i);
}
} else {
//choose a gun you don't have
for (let i = 0; i < b.guns.length; ++i) {
if (!b.guns[i].have) options.push(i);
}