Beta branch now always shows update when opening game

This commit is contained in:
danielyxie 2018-07-18 21:23:49 -05:00
parent 2b21e93a14
commit 523bfc18d1
2 changed files with 13 additions and 2 deletions

File diff suppressed because one or more lines are too long

@ -212,7 +212,10 @@ function loadGame(saveString) {
}
}
}
if (ver != CONSTANTS.Version) {
if (window.location.href.toLowerCase().includes("bitburner-beta")) {
//Beta branch, always show changes
createBetaUpdateText();
} else if (ver != CONSTANTS.Version) {
createNewUpdateText();
}
} catch(e) {
@ -588,6 +591,14 @@ function createNewUpdateText() {
CONSTANTS.LatestUpdate);
}
function createBetaUpdateText() {
dialogBoxCreate("You are playing on the beta environment! This branch of the game " +
"features the latest developments in the game. The game may have bugs.<br>" +
"Please report any bugs/issues through the github repository " +
"or the Bitburner subreddit (reddit.com/r/bitburner).<br><br>" +
CONSTANTS.LatestUpdate);
}
BitburnerSaveObject.prototype.toJSON = function() {
return Generic_toJSON("BitburnerSaveObject", this);