From 088657f1622f18b1427dbfa36a27f3ed1bf7547d Mon Sep 17 00:00:00 2001 From: Nolshine Date: Thu, 16 Sep 2021 18:41:48 +0100 Subject: [PATCH] fix the error introduced by previous fix skills and multipliers should now recalc correctly on both soft reset and new bitnode. --- src/PersonObjects/Player/PlayerObjectGeneralMethods.jsx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/PersonObjects/Player/PlayerObjectGeneralMethods.jsx b/src/PersonObjects/Player/PlayerObjectGeneralMethods.jsx index 144d067fa..0bc2e44ab 100644 --- a/src/PersonObjects/Player/PlayerObjectGeneralMethods.jsx +++ b/src/PersonObjects/Player/PlayerObjectGeneralMethods.jsx @@ -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() {