mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-16 06:18:42 +02: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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user