Updated version

This commit is contained in:
Daniel Xie 2017-05-15 12:23:20 -05:00
parent 7dfb102ba7
commit bf1469ce15
3 changed files with 4 additions and 1 deletions

@ -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

@ -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!");
}

@ -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);