From 0b50935be11b367d974b7dab44b6275f28e802b3 Mon Sep 17 00:00:00 2001 From: Acamaeda Date: Tue, 29 Sep 2020 19:47:47 -0400 Subject: [PATCH] idk --- index.html | 21 +++++++++++---------- js/game.js | 5 +++-- 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/index.html b/index.html index 933ce7b..bc18d1b 100644 --- a/index.html +++ b/index.html @@ -1,5 +1,12 @@ + The Modding Tree @@ -11,13 +18,14 @@ +

-

The Modding Tree {{VERSION.withoutName}}



+

{{modInfo.name}} {{VERSION.withoutName}}



Congratulations! You have reached the end and beaten this game, but for now...


Please check the Discord to see there are new content updates!



It took you {{formatTime(player.timePlayed)}} to beat the game.
@@ -51,7 +59,7 @@

-

The Modding Tree

+

{{modInfo.name}}


{{VERSION.withName}}


@@ -107,7 +115,7 @@
You have

{{format(player.points)}}

- points + {{modInfo.pointsName}}




@@ -147,11 +155,4 @@ - \ No newline at end of file diff --git a/js/game.js b/js/game.js index e446e02..ff50650 100644 --- a/js/game.js +++ b/js/game.js @@ -99,13 +99,14 @@ function exportSave() { document.body.removeChild(el); } -function importSave(imported=undefined) { +function importSave(imported=undefined, forced=false) { if (imported===undefined) imported = prompt("Paste your save here") try { tempPlr = Object.assign(getStartPlayer(), JSON.parse(atob(imported))) - if(tempPlr.versionType != "Modding") // Wrong save + if(tempPlr.versionType != modInfo.id && !forced) // Wrong save (use "Forced" to force it to accept.) return player = tempPlr; + player.versionType = modInfo.id fixSave() save() window.location.reload()