Added status text for saving. Minor rebalancing for Hacknet Node RAM Cost

This commit is contained in:
Daniel Xie
2017-05-15 11:54:23 -05:00
parent bb73fe1101
commit 56a7ed66a5
5 changed files with 57 additions and 3 deletions
+3
View File
@@ -22,6 +22,8 @@ BitburnerSaveObject.prototype.saveGame = function() {
var saveString = btoa(unescape(encodeURIComponent(JSON.stringify(this))));
window.localStorage.setItem("bitburnerSave", saveString);
Engine.createStatusText("Game saved!");
}
loadGame = function(saveObj) {
@@ -45,6 +47,7 @@ BitburnerSaveObject.prototype.deleteGame = function() {
if (window.localStorage.getItem("bitburnerSave")) {
window.localStorage.removeItem("bitburnerSave");
}
Engine.createStatusText("Game deleted!");
}