From 341975ee09cd16828bf358b997f329bba699c9ea Mon Sep 17 00:00:00 2001 From: qcorradi Date: Sun, 23 Jan 2022 20:30:36 +0100 Subject: [PATCH] Fixed player hacking exp multiplier application Fixing the application of player's exp multiplier as indicated in #2260, the game balance will need to get re-adjusted in consequence. --- src/Hacking.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Hacking.ts b/src/Hacking.ts index fa6855341..1157e6d9a 100644 --- a/src/Hacking.ts +++ b/src/Hacking.ts @@ -34,9 +34,9 @@ export function calculateHackingExpGain(server: Server, player: IPlayer): number server.baseDifficulty = server.hackDifficulty; } let expGain = baseExpGain; - expGain += server.baseDifficulty * player.hacking_exp_mult * diffFactor; + expGain += server.baseDifficulty * diffFactor; - return expGain * BitNodeMultipliers.HackExpGain; + return expGain * player.hacking_exp_mult * BitNodeMultipliers.HackExpGain; } /**