mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-25 02:32:55 +02:00
Started implementing Resleeving UI
This commit is contained in:
@@ -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];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user