new reactor boss: timeBoss - after taking some damage it speeds up the passage of time
reactor level has big doors

nonrefundable tech show up in the pause menu
time dilation field - move, jump, and fire 25% faster
JUNK tech: closed timelike curve - spawn 5 field power ups, but every 12 seconds teleport a second into your future
This commit is contained in:
landgreen
2022-05-25 19:15:34 -07:00
parent 25037cac0d
commit 779500ce21
10 changed files with 450 additions and 386 deletions

View File

@@ -280,13 +280,11 @@ const powerUps = {
if (!simulation.paused) {
if (tech.isNoDraftPause) {
const cycle = () => {
m.fireCDcycle = m.cycle + 5; //fire cooldown
if (simulation.isChoosing && m.alive) requestAnimationFrame(cycle)
}
requestAnimationFrame(cycle);
// const cycle = () => {
// m.fireCDcycle = m.cycle + 1; //fire cooldown
// if (simulation.isChoosing && m.alive) requestAnimationFrame(cycle)
// }
// requestAnimationFrame(cycle);
document.getElementById("choose-grid").style.opacity = "0.8"
} else {
@@ -1081,7 +1079,7 @@ const powerUps = {
}
},
pauseEjectTech(index) {
if ((tech.isPauseEjectTech || simulation.testing) && !simulation.isChoosing) {
if ((tech.isPauseEjectTech || simulation.testing) && !simulation.isChoosing && !tech.tech[index].isNonRefundable) {
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);