metamaterial cloaking now does 300% more damage

added 50% chance for elevators on warehouse level

metamaterial cloaking now does 300% more damage if a mob has not died in the last 4 seconds
  removed: tech: combinatorial optimization - increase damage by 66% if a mob hasn't died in the last 5 seconds

fixed bug with experiment not loading tech
This commit is contained in:
landgreen
2021-05-30 14:14:29 -07:00
parent d54ca92cf7
commit 69fec1cde7
7 changed files with 153 additions and 73 deletions

View File

@@ -300,6 +300,7 @@ const build = {
} else if (type === "tech") {
if (tech.tech[index].count < tech.tech[index].maxCount) {
if (!tech.tech[index].isLore && !tech.tech[index].isNonRefundable && !who.classList.contains("build-tech-selected")) who.classList.add("build-tech-selected");
tech.giveTech(index)
} else if (!tech.tech[index].isNonRefundable) {
tech.totalCount -= tech.tech[index].count
tech.removeTech(index);
@@ -311,6 +312,27 @@ const build = {
}, 50);
}
}
// } else if (type === "tech") { //remove tech if you have too many
// if (tech.tech[index].count < tech.tech[index].maxCount) {
// if (!who.classList.contains("build-tech-selected")) who.classList.add("build-tech-selected");
// tech.giveTech(index)
// } else if (!tech.tech[index].isNonRefundable) {
// tech.totalCount -= tech.tech[index].count
// tech.removeTech(index);
// who.classList.remove("build-tech-selected");
// } else {
// who.classList.remove("build-tech-selected")
// setTimeout(() => { //return energy
// who.classList.add("build-tech-selected")
// }, 50);
// }
// }
//update tech text //disable not allowed tech
for (let i = 0, len = tech.tech.length; i < len; i++) {
const techID = document.getElementById("tech-" + i)