Bug fix with marking augmentations as owned in Player.augmentations

This commit is contained in:
Daniel Xie 2017-06-28 14:21:04 -05:00
parent 8305c68d59
commit bc282daf08
2 changed files with 7 additions and 1 deletions

@ -982,6 +982,12 @@ displayFactionAugmentations = function(factionName) {
owned = true; 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 item = document.createElement("li");
var span = document.createElement("span"); var span = document.createElement("span");
var aDiv = document.createElement("div"); var aDiv = document.createElement("div");

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