1
0
Fork 0
mirror of https://github.com/Acamaeda/The-Modding-Tree.git synced 2024-11-24 09:21:46 +00:00

Fixed keepGoing with single tab.

This commit is contained in:
Harley White 2021-06-02 17:54:07 -04:00
parent b123b19ca5
commit 95046d9299
5 changed files with 13 additions and 7 deletions

View file

@ -1,5 +1,6 @@
# The Modding Tree changelog: # 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 issues with NaN checking. Saves should never break now unless something really unusual happens.
- Fixed demo.html - Fixed demo.html
- You can now use "this" in tabFormat! - You can now use "this" in tabFormat!
@ -12,6 +13,7 @@
- inChallenge no longer can return undefined. - 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). - 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. - Things are 0.2% more optimized.
- Fixed problems in the documentation.
### v2.5.11.1 - 5/27/21 ### v2.5.11.1 - 5/27/21
- Fixed issues caused when the tree tab is disabled. - Fixed issues caused when the tree tab is disabled.

View file

@ -11,7 +11,7 @@ let modInfo = {
// Set your version in num and name // Set your version in num and name
let VERSION = { let VERSION = {
num: "2.5.11.1", num: "2.5.12",
name: "Dreams Really Do Come True", name: "Dreams Really Do Come True",
} }

View file

@ -4,7 +4,7 @@ var gameEnded = false;
// Don't change this // Don't change this
const TMT_VERSION = { const TMT_VERSION = {
tmtNum: "2.5.11.1", tmtNum: "2.5.12",
tmtName: "Dreams Really Do Come True" tmtName: "Dreams Really Do Come True"
} }
@ -328,7 +328,10 @@ function autobuyUpgrades(layer){
} }
function gameLoop(diff) { function gameLoop(diff) {
if (isEndgame() || gameEnded) gameEnded = 1 if (isEndgame() || gameEnded){
gameEnded = 1
clearParticles()
}
if (isNaN(diff)) diff = 0 if (isNaN(diff)) diff = 0
if (gameEnded && !player.keepGoing) { if (gameEnded && !player.keepGoing) {

View file

@ -49,11 +49,10 @@ function achievementStyle(layer, id){
function updateWidth() { function updateWidth() {
var screenWidth = window.innerWidth let screenWidth = window.innerWidth
let last = tmp.other.splitScreen
var splitScreen = screenWidth >= 1024 let splitScreen = screenWidth >= 1024
if (player.forceOneTab) splitScreen = false if (player.forceOneTab) splitScreen = false
if (player.navTab == "none") splitScreen = true if (player.navTab == "none") splitScreen = true
tmp.other.screenWidth = screenWidth tmp.other.screenWidth = screenWidth
@ -61,6 +60,7 @@ function updateWidth() {
tmp.other.splitScreen = splitScreen tmp.other.splitScreen = splitScreen
tmp.other.lastPoints = player.points tmp.other.lastPoints = player.points
if (last !== tmp.other.splitScreen) needCanvasUpdate = true
} }
function updateOomps(diff) function updateOomps(diff)

View file

@ -250,6 +250,7 @@ function layerunlocked(layer) {
function keepGoing() { function keepGoing() {
player.keepGoing = true; player.keepGoing = true;
needCanvasUpdate = true; needCanvasUpdate = true;
showTab(player.lastSafeTab)
} }
function toNumber(x) { function toNumber(x) {