From bf1469ce151fa4be8273041119be05bb5074782c Mon Sep 17 00:00:00 2001 From: Daniel Xie Date: Mon, 15 May 2017 12:23:20 -0500 Subject: [PATCH] Updated version --- src/Constants.js | 2 +- src/SaveObject.js | 1 + src/engine.js | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Constants.js b/src/Constants.js index d38c004a7..81bf25d23 100644 --- a/src/Constants.js +++ b/src/Constants.js @@ -1,5 +1,5 @@ CONSTANTS = { - Version: "0.6", + Version: "0.7", //Max level for any skill, assuming no multipliers. Determined by max numerical value in javascript for experience //and the skill level formula in Player.js. Note that all this means it that when experience hits MAX_INT, then diff --git a/src/SaveObject.js b/src/SaveObject.js index f6cc92867..06470ff97 100644 --- a/src/SaveObject.js +++ b/src/SaveObject.js @@ -23,6 +23,7 @@ BitburnerSaveObject.prototype.saveGame = function() { var saveString = btoa(unescape(encodeURIComponent(JSON.stringify(this)))); window.localStorage.setItem("bitburnerSave", saveString); + console.log("Game saved!"); Engine.createStatusText("Game saved!"); } diff --git a/src/engine.js b/src/engine.js index 1fc033daf..ddfaac31e 100644 --- a/src/engine.js +++ b/src/engine.js @@ -698,9 +698,11 @@ var Engine = { Engine._prevTimeout = null; } var statusText = document.getElementById("status-text") + statusText.style.display = "inline-block"; statusText.setAttribute("class", "status-text"); statusText.innerHTML = txt; Engine._prevTimeout = setTimeout(function() { + statusText.style.display = "none"; statusText.removeAttribute("class"); statusText.innerHTML = ""; }, 3000);