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()