From dadf42bfe8d17e57b1a1e09d5b3569f928ef883a Mon Sep 17 00:00:00 2001 From: Snarling <84951833+Snarling@users.noreply.github.com> Date: Sun, 26 Mar 2023 02:56:01 -0400 Subject: [PATCH] Fix hackAnalyzeThreads again But actually this time --- src/NetscriptFunctions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NetscriptFunctions.ts b/src/NetscriptFunctions.ts index fffd4e6da..dcbed56df 100644 --- a/src/NetscriptFunctions.ts +++ b/src/NetscriptFunctions.ts @@ -176,7 +176,7 @@ export const ns: InternalAPI = { return 0; // To prevent returning infinity below } - return (hackAmount / server.moneyAvailable) * percentHacked; + return hackAmount / (server.moneyAvailable * percentHacked); }, hackAnalyze: (ctx) => (_hostname) => { const hostname = helpers.string(ctx, "hostname", _hostname);