no reaction

reactor
  you can skip the fight, by not pressing the button and exiting
  sprayBoss spray mode is now triggered by health loss, it fires a bit slower
  power ups now spawn high up, but some fall off the edges
  bonus Bosses can now spawn on reactor

bug fixes
This commit is contained in:
landgreen
2022-04-17 10:31:04 -07:00
parent 2dc633d2da
commit aad1706969
6 changed files with 68 additions and 128 deletions

View File

@@ -1046,7 +1046,7 @@ const powerUps = {
},
pauseEjectTech(index) {
if (tech.isPauseEjectTech || simulation.testing) {
if (Math.random() < 0.1 || tech.tech[index].isFromAppliedScience) {
if (Math.random() < 0.1 || tech.tech[index].isFromAppliedScience || (tech.tech[index].bonusResearch !== undefined && tech.tech[index].bonusResearch > powerUps.research.count)) {
tech.removeTech(index)
powerUps.spawn(m.pos.x + 40 * (Math.random() - 0.5), m.pos.y + 40 * (Math.random() - 0.5), "research", false);
} else {