diff --git a/changelog.md b/changelog.md index 004b0a0..f059f25 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,6 @@ # The Modding Tree changelog: +### v2.5.12 - 6/2/21 - Fixed issues with NaN checking. Saves should never break now unless something really unusual happens. - Fixed demo.html - You can now use "this" in tabFormat! @@ -12,6 +13,7 @@ - inChallenge no longer can return undefined. - Fixed certain things skipping negative rows (now they are treated like non-numeric rows, and don't appear in the tree still). - Things are 0.2% more optimized. +- Fixed problems in the documentation. ### v2.5.11.1 - 5/27/21 - Fixed issues caused when the tree tab is disabled. diff --git a/js/Demo/demoMod.js b/js/Demo/demoMod.js index 3d54dfd..f8b50f6 100644 --- a/js/Demo/demoMod.js +++ b/js/Demo/demoMod.js @@ -11,7 +11,7 @@ let modInfo = { // Set your version in num and name let VERSION = { - num: "2.5.11.1", + num: "2.5.12", name: "Dreams Really Do Come True", } diff --git a/js/game.js b/js/game.js index cbe49a0..e799201 100644 --- a/js/game.js +++ b/js/game.js @@ -4,7 +4,7 @@ var gameEnded = false; // Don't change this const TMT_VERSION = { - tmtNum: "2.5.11.1", + tmtNum: "2.5.12", tmtName: "Dreams Really Do Come True" } @@ -328,7 +328,10 @@ function autobuyUpgrades(layer){ } function gameLoop(diff) { - if (isEndgame() || gameEnded) gameEnded = 1 + if (isEndgame() || gameEnded){ + gameEnded = 1 + clearParticles() + } if (isNaN(diff)) diff = 0 if (gameEnded && !player.keepGoing) { diff --git a/js/technical/displays.js b/js/technical/displays.js index 48d07df..df7096e 100644 --- a/js/technical/displays.js +++ b/js/technical/displays.js @@ -49,11 +49,10 @@ function achievementStyle(layer, id){ - function updateWidth() { - var screenWidth = window.innerWidth - - var splitScreen = screenWidth >= 1024 + let screenWidth = window.innerWidth + let last = tmp.other.splitScreen + let splitScreen = screenWidth >= 1024 if (player.forceOneTab) splitScreen = false if (player.navTab == "none") splitScreen = true tmp.other.screenWidth = screenWidth @@ -61,6 +60,7 @@ function updateWidth() { tmp.other.splitScreen = splitScreen tmp.other.lastPoints = player.points + if (last !== tmp.other.splitScreen) needCanvasUpdate = true } function updateOomps(diff) diff --git a/js/utils.js b/js/utils.js index a5015f5..ff7adc2 100644 --- a/js/utils.js +++ b/js/utils.js @@ -250,6 +250,7 @@ function layerunlocked(layer) { function keepGoing() { player.keepGoing = true; needCanvasUpdate = true; + showTab(player.lastSafeTab) } function toNumber(x) {