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