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 = { CONSTANTS = {
Version: "0.6", Version: "0.7",
//Max level for any skill, assuming no multipliers. Determined by max numerical value in javascript for experience //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 //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)))); var saveString = btoa(unescape(encodeURIComponent(JSON.stringify(this))));
window.localStorage.setItem("bitburnerSave", saveString); window.localStorage.setItem("bitburnerSave", saveString);
console.log("Game saved!");
Engine.createStatusText("Game saved!"); Engine.createStatusText("Game saved!");
} }

@ -698,9 +698,11 @@ var Engine = {
Engine._prevTimeout = null; Engine._prevTimeout = null;
} }
var statusText = document.getElementById("status-text") var statusText = document.getElementById("status-text")
statusText.style.display = "inline-block";
statusText.setAttribute("class", "status-text"); statusText.setAttribute("class", "status-text");
statusText.innerHTML = txt; statusText.innerHTML = txt;
Engine._prevTimeout = setTimeout(function() { Engine._prevTimeout = setTimeout(function() {
statusText.style.display = "none";
statusText.removeAttribute("class"); statusText.removeAttribute("class");
statusText.innerHTML = ""; statusText.innerHTML = "";
}, 3000); }, 3000);