Give NeuroFlux for SF-12 before re-calculating multipliers

This commit is contained in:
Daniel Xie 2021-05-05 04:19:59 -07:00 committed by danielyxie
parent 0c744d98b9
commit 0415c7aa7c

@ -234,6 +234,11 @@ function prestigeSourceFile() {
}
}
// Give levels of NeuroFluxGoverner for Source-File 12. Must be done here before Augmentations are recalculated
if (SourceFileFlags[12] > 0) {
Player.augmentations.push({name: AugmentationNames.NeuroFluxGovernor, level: SourceFileFlags[12]})
}
// Re-initialize things - This will update any changes
initFactions(); // Factions must be initialized before augmentations
initAugmentations(); // Calls reapplyAllAugmentations() and resets Player multipliers
@ -340,11 +345,6 @@ function prestigeSourceFile() {
updateHashManagerCapacity();
}
if(SourceFileFlags[12] > 0) {
Player.augmentations.push({name: AugmentationNames.NeuroFluxGovernor, level: SourceFileFlags[12]})
Player.reapplyAllAugmentations(true);
}
// Refresh Main Menu (the 'World' menu, specifically)
document.getElementById("world-menu-header").click();
document.getElementById("world-menu-header").click();