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

View File

@@ -1,31 +1,6 @@
******************************************************** NEXT PATCH ************************************************** ******************************************************** NEXT PATCH **************************************************
new tech are sorted to the top of the tech list bug fix for experiment mode
pause menu tech list matches the tech list in game
JUNK tech icons are properly displayed in pause
Sort interface works with enter key
bug fix: you can no longer pause or enter testing in experiment selection on text input
pressing P in power up selection menu brings up the pause menu
so you can see your tech and stats
blocks stuck in vertical portals have a bit of randomness added to their velocity to help them escape
JUNK tech chance is a raw percent chance to display a random JUNK
it was previously a specific JUNK tech directly added to the pool
this might cause bugs
JUNK tech: beforeunload - asks if you want to cancel if you exit game, if you cancel gain 25% damage, but there is a 25% chance to exit anyways
JUNK tech: what the block? - trying to throw a block, throws you instead
reinforcement learning converted into a JUNK tech
JUNK DNA - scale damage by 100->200% of JUNK pool tech percent
dark patterns 33->22% JUNK
replication 33->22% JUNK
overcharge 66->88 max energy
residual dipolar coupling 6->8 coupling per cancel
futures exchange 4.7->5% duplication per cancel
hyperpolarization reduces polarization time by 1->1.25 seconds
reel +75->100 energy
updated physics engine to matter.js 0.19 (from 0.18)
*********************************************************** TODO ***************************************************** *********************************************************** TODO *****************************************************