Merge pull request #77 from danielyxie/dev

Bug fix with marking augmentations as owned in Player.augmentations
This commit is contained in:
danielyxie 2017-06-28 14:21:22 -05:00 committed by GitHub
commit d6a99dc0d1
2 changed files with 7 additions and 1 deletions

@ -982,6 +982,12 @@ displayFactionAugmentations = function(factionName) {
owned = true;
}
}
for (var j = 0; j < Player.augmentations.length; ++j) {
if (Player.augmentations[j].name == aug.name) {
owned = true;
}
}
var item = document.createElement("li");
var span = document.createElement("span");
var aDiv = document.createElement("div");

@ -168,7 +168,7 @@ loadImportedGame = function(saveObj, saveString) {
}
}
if (CONSTANTS.Version == "0.23.0") {
Augmentations = JSON.parse(saveObj.AugmentationsSave, Reviver);
tempAugmentations = JSON.parse(saveObj.AugmentationsSave, Reviver);
}
createNewUpdateText();
}