bug fixes

This commit is contained in:
landgreen
2024-03-13 19:27:35 -07:00
parent 64c81cd802
commit 254ec001e2
3 changed files with 4 additions and 29 deletions

View File

@@ -985,8 +985,8 @@ ${simulation.isCheating ? "<br><br><em>lore disabled</em>" : ""}
// document.getElementById(`tech-${i}`).setAttribute('title', tech.tech[i].requires); //add tooltip
}
}
//highlight selected
requestAnimationFrame(() => { document.getElementById("sort-input").focus(); });
},
nameLink(text) { //converts text into a clickable wikipedia search
return `<a target="_blank" href='https://en.wikipedia.org/w/index.php?search=${encodeURIComponent(text).replace(/'/g, '%27')}&title=Special:Search' class="link">${text}</a>`

View File

@@ -169,7 +169,7 @@ const tech = {
console.log(tech.tech[index].cycle)
tech.totalCount++ //used in power up randomization
//move new tech to the top of the tech list
if (index > 0) {
if (index > 0 && !build.isExperimentSelection) {
// Remove the element from the array
const [item] = tech.tech.splice(index, 1);
// Add the element to the front of the array
@@ -2928,7 +2928,7 @@ const tech = {
},
requires: "",
effect() {
tech.bonusEnergy += 0.66
tech.bonusEnergy += 0.88
m.setMaxEnergy()
this.refundAmount += tech.addJunkTechToPool(0.05)
},