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:
22
js/index.js
22
js/index.js
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user