From 254ec001e2146c875ca0ff6c0c1b9e213a010dd2 Mon Sep 17 00:00:00 2001 From: landgreen Date: Wed, 13 Mar 2024 19:27:35 -0700 Subject: [PATCH] bug fixes --- js/index.js | 2 +- js/tech.js | 4 ++-- todo.txt | 27 +-------------------------- 3 files changed, 4 insertions(+), 29 deletions(-) diff --git a/js/index.js b/js/index.js index 633155b..c735631 100644 --- a/js/index.js +++ b/js/index.js @@ -985,8 +985,8 @@ ${simulation.isCheating ? "

lore disabled" : ""} // 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 `${text}` diff --git a/js/tech.js b/js/tech.js index 533ba52..acd5cda 100644 --- a/js/tech.js +++ b/js/tech.js @@ -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) }, diff --git a/todo.txt b/todo.txt index 651378c..d852bbd 100644 --- a/todo.txt +++ b/todo.txt @@ -1,31 +1,6 @@ ******************************************************** NEXT PATCH ************************************************** -new tech are sorted to the top of the tech list - 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) +bug fix for experiment mode *********************************************************** TODO *****************************************************