Merge pull request #3005 from rhobes/patch-1

Fix https://github.com/danielyxie/bitburner/issues/2996: weakenAnalyze miscalculation
This commit is contained in:
hydroflame 2022-03-01 11:16:31 -05:00 committed by GitHub
commit f11e7bac6a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -703,7 +703,7 @@ export function NetscriptFunctions(workerScript: WorkerScript): NS {
}, },
weakenAnalyze: function (threads: any, cores: any = 1): number { weakenAnalyze: function (threads: any, cores: any = 1): number {
const coreBonus = 1 + (cores - 1) / 16; const coreBonus = 1 + (cores - 1) / 16;
return CONSTANTS.ServerWeakenAmount * threads * coreBonus; return CONSTANTS.ServerWeakenAmount * threads * coreBonus * BitNodeMultipliers.ServerWeakenRate;
}, },
share: function (): Promise<void> { share: function (): Promise<void> {
workerScript.log("share", () => "Sharing this computer."); workerScript.log("share", () => "Sharing this computer.");