diff --git a/js/Demo/demoMod.js b/js/Demo/demoMod.js
index 4257d46..59a652e 100644
--- a/js/Demo/demoMod.js
+++ b/js/Demo/demoMod.js
@@ -13,7 +13,7 @@ let modInfo = {
// Set your version in num and name
let VERSION = {
- num: "2.6.4",
+ num: "2.6.4.1",
name: "Fixed Reality",
}
@@ -61,7 +61,7 @@ var displayThings = [
// Determines when the game "ends"
function isEndgame() {
- return player.points.gte(new Decimal("e280000000"))
+ return player.points.gte(new Decimal("11"))
}
diff --git a/js/game.js b/js/game.js
index 68e3580..8c6a416 100644
--- a/js/game.js
+++ b/js/game.js
@@ -1,10 +1,9 @@
var player;
var needCanvasUpdate = true;
-var gameEnded = false;
// Don't change this
const TMT_VERSION = {
- tmtNum: "2.6.4",
+ tmtNum: "2.6.4.1",
tmtName: "Fixed Reality"
}
@@ -312,15 +311,15 @@ function autobuyUpgrades(layer){
}
function gameLoop(diff) {
- if (isEndgame() || gameEnded){
- gameEnded = 1
+ if (isEndgame() || tmp.gameEnded){
+ tmp.gameEnded = true
clearParticles()
}
if (isNaN(diff) || diff < 0) diff = 0
- if (gameEnded && !player.keepGoing) {
+ if (tmp.gameEnded && !player.keepGoing) {
diff = 0
- //player.tab = "gameEnded"
+ //player.tab = "tmp.gameEnded"
clearParticles()
}
@@ -389,7 +388,7 @@ var ticking = false
var interval = setInterval(function() {
if (player===undefined||tmp===undefined) return;
if (ticking) return;
- if (gameEnded&&!player.keepGoing) return;
+ if (tmp.gameEnded&&!player.keepGoing) return;
ticking = true
let now = Date.now()
let diff = (now - player.time) / 1e3
diff --git a/js/technical/temp.js b/js/technical/temp.js
index 91ceeaf..eab66e2 100644
--- a/js/technical/temp.js
+++ b/js/technical/temp.js
@@ -28,6 +28,7 @@ function setupTemp() {
tmp.backgroundStyle = {}
tmp.displayThings = []
tmp.scrolled = 0
+ tmp.gameEnded = false
funcs = {}
setupTempData(layers, tmp, funcs)
diff --git a/js/utils/save.js b/js/utils/save.js
index 597cdd1..324c1b2 100644
--- a/js/utils/save.js
+++ b/js/utils/save.js
@@ -308,7 +308,7 @@ function versionCheck() {
var saveInterval = setInterval(function () {
if (player === undefined)
return;
- if (gameEnded && !player.keepGoing)
+ if (tmp.gameEnded && !player.keepGoing)
return;
if (options.autosave)
save();