ice IX energy

laser bots now use the same laser code as the player
mod: thermoelectric effect - ice IX bullets give you 7% energy after they collides with mobs
This commit is contained in:
landgreen
2020-10-04 18:16:01 -07:00
parent b1f4109827
commit 7947e69d4d
6 changed files with 144 additions and 86 deletions

View File

@@ -152,8 +152,7 @@ const powerUps = {
//give ammo to all guns in inventory
if (mod.isAmmoForGun) {
const target = b.guns[b.activeGun]
target.ammo += Math.ceil(Math.random() * target.ammoPack)
target.ammo += Math.ceil(Math.random() * target.ammoPack)
target.ammo += Math.ceil(Math.random() * target.ammoPack) + Math.ceil(Math.random() * target.ammoPack)
} else {
for (let i = 0, len = b.inventory.length; i < len; i++) {
const target = b.guns[b.inventory[i]]