2 bosses late game

on later levels spawn 2 bosses, but 1 power up each
  starts at simulation.difficulty > 23 //on hard mode level 6, level 12 on easy, level 4 on why?
  makes combat harder, but also means that you will always get at least 2 drops per level
    you used to have a chance to only get 1 near the end of the game
    I'm guessing this will lead to about 3 more total tech by the final boss
  abiogenesis - removed
  parthenogenesis - doesn't duplicate bosses anymore, +8% duplication
This commit is contained in:
landgreen
2023-09-02 15:30:23 -07:00
parent 99bd1c876e
commit 8a3ac11793
5 changed files with 75 additions and 62 deletions

View File

@@ -1357,8 +1357,10 @@ const powerUps = {
powerUps.randomPowerUpCounter++;
powerUpChance(Math.max(level.levelsCleared, 10) * 0.1)
}
powerUps.randomPowerUpCounter += 0.6;
powerUpChance(Math.max(level.levelsCleared, 6) * 0.1)
if (!(simulation.difficulty > spawn.secondaryBossThreshold)) {
powerUps.randomPowerUpCounter += 0.6;
powerUpChance(Math.max(level.levelsCleared, 6) * 0.1)
}
function powerUpChance(chanceToFail) {
if (Math.random() * chanceToFail < powerUps.randomPowerUpCounter) {