Update to 0.27.1 and add backwards compatibility

This commit is contained in:
danielyxie 2017-08-15 15:27:00 -05:00
parent c29c3e8f4c
commit 6975b46d4d
2 changed files with 4 additions and 4 deletions

@ -1,5 +1,5 @@
CONSTANTS = {
Version: "0.27.0",
Version: "0.27.1",
//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

@ -121,7 +121,7 @@ loadGame = function(saveObj) {
if (saveObj.hasOwnProperty("VersionSave")) {
try {
var ver = JSON.parse(saveObj.VersionSave, Reviver);
if (ver == "0.27.0") {
if (ver == "0.27.0" || ver == "0.27.1") {
if (Player.bitNodeN == null || Player.bitNodeN == 0) {
Player.bitNodeN = 1;
}
@ -217,7 +217,7 @@ loadImportedGame = function(saveObj, saveString) {
if (tempSaveObj.hasOwnProperty("VersionSave")) {
try {
var ver = JSON.parse(tempSaveObj.VersionSave, Reviver);
if (ver == "0.27.0") {
if (ver == "0.27.0" || ver == "0.27.1") {
if (tempPlayer.bitNodeN == null || tempPlayer.bitNodeN == 0) {
tempPlayer.bitNodeN = 1;
}