Started implementing Resleeving UI

This commit is contained in:
danielyxie
2019-01-16 21:15:00 -08:00
parent 6d8d25e0bb
commit 19f65de555
6 changed files with 37 additions and 11 deletions
+4 -2
View File
@@ -1991,12 +1991,14 @@ function resetAugmentation(newAugObject) {
function applyAugmentation(aug, reapply=false) {
Augmentations[aug.name].owned = true;
const augObj = Augmentations[aug.name];
// Apply multipliers
for (const mult in aug.mults) {
for (const mult in augObj.mults) {
if (Player[mult] == null) {
console.warn(`Augmentation has unrecognized multiplier property: ${mult}`);
} else {
Player[mult] *= aug.mults[mult];
Player[mult] *= augObj.mults[mult];
}
}