diff --git a/index.html b/index.html
index 07cf4d9..a01bede 100644
--- a/index.html
+++ b/index.html
@@ -4,7 +4,8 @@
const modInfo = {
name: "The Modding Tree",
id: "modbase",
- pointsName: "points"
+ pointsName: "points",
+ offlineLimit: 1 // In hours
}
The Modding Tree
diff --git a/js/game.js b/js/game.js
index 4009268..9b9d214 100644
--- a/js/game.js
+++ b/js/game.js
@@ -55,7 +55,7 @@ function inChallenge(layer, id){
}
function save() {
- localStorage.setItem("prestige-tree", btoa(JSON.stringify(player)))
+ localStorage.setItem(modInfo.id, btoa(JSON.stringify(player)))
}
function fixSave() {
@@ -95,7 +95,7 @@ function fixSave() {
}
function load() {
- let get = localStorage.getItem("prestige-tree");
+ let get = localStorage.getItem(modInfo.id);
if (get===null || get===undefined) player = getStartPlayer()
else player = Object.assign(getStartPlayer(), JSON.parse(atob(get)))
fixSave()