mirror of
https://github.com/Acamaeda/The-Modding-Tree.git
synced 2024-11-21 16:13:55 +00:00
Fixed keepGoing with single tab.
This commit is contained in:
parent
b123b19ca5
commit
95046d9299
5 changed files with 13 additions and 7 deletions
|
@ -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.
|
||||
|
|
|
@ -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",
|
||||
}
|
||||
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -250,6 +250,7 @@ function layerunlocked(layer) {
|
|||
function keepGoing() {
|
||||
player.keepGoing = true;
|
||||
needCanvasUpdate = true;
|
||||
showTab(player.lastSafeTab)
|
||||
}
|
||||
|
||||
function toNumber(x) {
|
||||
|
|
Loading…
Reference in a new issue