mine balance

This commit is contained in:
landgreen
2020-01-08 07:02:51 -08:00
parent e905165e79
commit e63367d103
3 changed files with 80 additions and 54 deletions

View File

@@ -432,6 +432,7 @@ const game = {
b.inventory = []; //removes guns and ammo
for (let i = 0, len = b.guns.length; i < len; ++i) {
b.guns[i].count = 0;
b.guns[i].have = false;
if (b.guns[i].ammo != Infinity) b.guns[i].ammo = 0;
}
b.activeGun = null;