laser mod

mod: stimulated emission - 8% chance to duplicate power ups
laser mod: diffuse beam - laser is wide but doesn't reflect, 150% damage and energy drain
This commit is contained in:
landgreen
2020-10-03 07:44:27 -07:00
parent 0a15a7748a
commit b22bd12529
8 changed files with 321 additions and 226 deletions

View File

@@ -577,9 +577,9 @@ const powerUps = {
!(mod.isEnergyNoAmmo && target === 'ammo')
) {
powerUps.directSpawn(x, y, target, moving, mode, size)
if (mod.isBayesian && Math.random() < 0.17) {
if (mod.duplicateChance && Math.random() < mod.duplicateChance) {
powerUps.directSpawn(x, y, target, moving, mode)
powerUp[powerUp.length - 1].isBayesian = true
powerUp[powerUp.length - 1].isBonus = true
}
}
},