level ban setting

new setting: level ban list
bug fix: removed a command to preventDefault on space key, this might break something else
new boss added to level - Temple

snake tails have a lower mass and whip around a bit
auto targeting no longer works for stealth mobs
  snipers, sneakers, ghosters
snipers fire more often at high difficulty, but bullets move slower at all difficulties
hoppers have move gravity, so it feels like they are hopping a bit faster
This commit is contained in:
landgreen
2022-08-11 16:46:42 -07:00
parent 50dcc0c9dc
commit fee9526268
9 changed files with 454 additions and 152 deletions

View File

@@ -921,7 +921,7 @@ const powerUps = {
if (tech.isExtraBotOption) {
const botTech = [] //make an array of bot options
for (let i = 0, len = tech.tech.length; i < len; i++) {
if (tech.tech[i].isBotTech && tech.tech[i].count < tech.tech[i].maxCount && tech.tech[i].allowed()) botTech.push(i)
if (tech.tech[i].isBotTech && tech.tech[i].count < tech.tech[i].maxCount && tech.tech[i].allowed() && !tech.tech[i].isRecentlyShown) botTech.push(i)
}
if (botTech.length > 0) { //pick random bot tech
const choose = botTech[Math.floor(Math.random() * botTech.length)];