prestige system now absolutely complete

This commit is contained in:
Vermilingua
2013-10-16 21:19:49 +11:00
parent f952b4def1
commit 83bf266a29
5 changed files with 59 additions and 39 deletions
+6 -5
View File
@@ -10,6 +10,7 @@ var Engine = {
VERSION: 1.3,
MAX_STORE: 99999999999999,
SAVE_DISPLAY: 30 * 1000,
GAME_OVER: false,
//object event types
topics: {},
@@ -206,12 +207,12 @@ var Engine = {
},
deleteSave: function() {
//var carriedPrestige = $SM.get('previous.stores');
if(typeof Storage != 'undefined' && localStorage) {
localStorage.clear();
}
if (!Engine.GAME_OVER) {
if(typeof Storage != 'undefined' && localStorage) {
localStorage.clear();
}
}
location.reload();
//$SM.set('previous.stores',carriedPrestige);
},
share: function() {