mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-23 08:03:48 +01:00
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:
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() {
|
||||
|
Loading…
Reference in New Issue
Block a user