fix the error introduced by previous fix

skills and multipliers should now recalc correctly on both soft reset
and new bitnode.
This commit is contained in:
Nolshine 2021-09-16 18:41:48 +01:00 committed by Olivier Gagnon
parent 302e105bdf
commit 088657f162

@ -174,11 +174,8 @@ export function prestigeAugmentation() {
this.hacknetNodes.length = 0;
this.hashManager.prestige();
// Reset player multipliers
this.resetMultipliers();
// Re-calculate skills and reset HP
this.updateSkillLevels();
// Reapply augs, re-calculate skills and reset HP
this.reapplyAllAugmentations(true);
this.hp = this.max_hp;
}
@ -2307,6 +2304,8 @@ export function reapplyAllAugmentations(resetMultipliers = true) {
}
applyAugmentation(this.augmentations[i], true);
}
this.updateSkillLevels();
}
export function reapplyAllSourceFiles() {