Bayesian statistics

blocks drift towards the center of pilot wave's field

mod: Bayesian statistics - no longer stops ammo spawns
  30% to double power ups, but ejects a mod when you take damage

mod: exciton-lattice - 40% damage, but no ammo can spawn
This commit is contained in:
landgreen
2020-09-08 17:38:44 -07:00
parent e3d8dda23f
commit 8ce7f684c8
11 changed files with 135 additions and 107 deletions

View File

@@ -81,8 +81,7 @@ const spawn = {
}
}
},
//"shooterBoss", "cellBossCulture", "bomberBoss", "spiderBoss", "launcherBoss", "laserTargetingBoss", "powerUpBoss",
randomLevelBoss(x, y, options = ["snakeBoss"]) {
randomLevelBoss(x, y, options = ["shooterBoss", "cellBossCulture", "bomberBoss", "spiderBoss", "launcherBoss", "laserTargetingBoss", "powerUpBoss", "snakeBoss"]) {
// other bosses: suckerBoss, laserBoss, tetherBoss, //all need a particular level to work so they are not included
spawn[options[Math.floor(Math.random() * options.length)]](x, y)
},